diff options
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/engine.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index cf361a8c5..337627047 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -224,6 +224,9 @@ tb_int_t xm_semver_select(lua_State* lua); tb_int_t xm_curses_register(lua_State* lua); #endif +// open cjson +tb_int_t luaopen_cjson(lua_State *l); + /* ////////////////////////////////////////////////////////////////////////////////////// * globals */ @@ -849,6 +852,10 @@ xm_engine_ref_t xm_engine_init(tb_char_t const* name, xm_engine_lni_initalizer_c lua_setglobal(engine->lua, "curses"); #endif + // bind json + luaopen_cjson(engine->lua); + lua_setglobal(engine->lua, "json"); + // init host xm_engine_init_host(engine); |
