view extern/libduktape/duk_module.h @ 211:adcbb7ccfdee

rpg: some refactoring Rename map tile properties into `map_tiledef` and refactor a bit functions to reduce code duplication. Also add more sane collisions in the test map.
author David Demelier <markand@malikania.fr>
date Sun, 15 Nov 2020 21:47:49 +0100
parents d6f217a5e4b1
children
line wrap: on
line source

#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 */