| 1402 | } |
| 1403 | |
| 1404 | int 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 | |
| 1418 | int luaopen_cjson_safe(lua_State *l) |
| 1419 | { |
nothing calls this directly
no test coverage detected