MCPcopy Create free account
hub / github.com/defold/defold / luaopen_cjson

Function luaopen_cjson

engine/script/src/luacjson/lua_cjson.c:1834–1846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1832}
1833
1834int luaopen_cjson(lua_State *l)
1835{
1836 lua_cjson_new(l);
1837
1838#ifdef ENABLE_CJSON_GLOBAL
1839 /* Register a global "cjson" table. */
1840 lua_pushvalue(l, -1);
1841 lua_setglobal(l, CJSON_MODNAME);
1842#endif
1843
1844 /* Return cjson table */
1845 return 1;
1846}
1847
1848int luaopen_cjson_safe(lua_State *l)
1849{

Callers

nothing calls this directly

Calls 2

lua_cjson_newFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected