MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / luaopen_cjson

Function luaopen_cjson

LuaSTGPlus/LuaExtensions/cjson4lua/lua_cjson.c:1407–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407int luaopen_cjson(lua_State *l)
1408{
1409 lua_cjson_new(l);
1410
1411#ifdef ENABLE_CJSON_GLOBAL
1412 /* Register a global "cjson" table. */
1413 lua_pushvalue(l, -1);
1414 lua_setglobal(l, CJSON_MODNAME);
1415#endif
1416
1417 /* Return cjson table */
1418 return 1;
1419}
1420
1421int luaopen_cjson_safe(lua_State *l)
1422{

Callers 1

InitMethod · 0.85

Calls 1

lua_cjson_newFunction · 0.85

Tested by

no test coverage detected