MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaopen_cjson

Function luaopen_cjson

deps/lua/src/lua_cjson.c:1404–1416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

lua_cjson_newFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected