MCPcopy Create free account
hub / github.com/axmolengine/axmol / luaopen_cjson

Function luaopen_cjson

3rdparty/lua/lua-cjson/lua_cjson.c:1440–1452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440int luaopen_cjson(lua_State *l)
1441{
1442 lua_cjson_new(l);
1443
1444#ifdef ENABLE_CJSON_GLOBAL
1445 /* Register a global "cjson" table. */
1446 lua_pushvalue(l, -1);
1447 lua_setglobal(l, CJSON_MODNAME);
1448#endif
1449
1450 /* Return cjson table */
1451 return 1;
1452}
1453
1454int luaopen_cjson_safe(lua_State *l)
1455{

Callers

nothing calls this directly

Calls 3

lua_cjson_newFunction · 0.85
lua_pushvalueFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected