duk_module_duktape.h 520 B

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