| 1832 | } |
| 1833 | |
| 1834 | int 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 | |
| 1848 | int luaopen_cjson_safe(lua_State *l) |
| 1849 | { |
nothing calls this directly
no test coverage detected