22 lines
542 B
C
22 lines
542 B
C
#if !defined(DUK_MODULE_DUKTAPE_H_INCLUDED)
|
|
#define DUK_MODULE_DUKTAPE_H_INCLUDED
|
|
|
|
#include "duktape.h"
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Maximum length of CommonJS module identifier to resolve. Length includes
|
|
* both current module ID, requested (possibly relative) module ID, and a
|
|
* slash in between.
|
|
*/
|
|
#define DUK_COMMONJS_MODULE_ID_LIMIT 256
|
|
|
|
extern void duk_module_duktape_init(duk_context* ctx);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif /* end 'extern "C"' wrapper */
|
|
|
|
#endif /* DUK_MODULE_DUKTAPE_H_INCLUDED */ |