| 1438 | } |
| 1439 | |
| 1440 | int 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 | |
| 1454 | int luaopen_cjson_safe(lua_State *l) |
| 1455 | { |
nothing calls this directly
no test coverage detected