duk_module_duktape.h 538 B

12345678910111213141516171819202122
  1. #if !defined(DUK_MODULE_DUKTAPE_H_INCLUDED)
  2. #define DUK_MODULE_DUKTAPE_H_INCLUDED
  3. #include "duktape.h"
  4. #if defined(__cplusplus)
  5. extern "C" {
  6. #endif
  7. /* Maximum length of CommonJS module identifier to resolve. Length includes
  8. * both current module ID, requested (possibly relative) module ID, and a
  9. * slash in between.
  10. */
  11. #define DUK_COMMONJS_MODULE_ID_LIMIT 256
  12. extern void duk_module_duktape_init(duk_context *ctx);
  13. #if defined(__cplusplus)
  14. }
  15. #endif /* end 'extern "C"' wrapper */
  16. #endif /* DUK_MODULE_DUKTAPE_H_INCLUDED */