| 243 | |
| 244 | #if 0 // DEFOLD |
| 245 | static json_config_t *json_fetch_config(lua_State *l) |
| 246 | { |
| 247 | json_config_t *cfg; |
| 248 | |
| 249 | cfg = lua_touserdata(l, lua_upvalueindex(1)); |
| 250 | if (!cfg) |
| 251 | luaL_error(l, "BUG: Unable to fetch CJSON configuration"); |
| 252 | |
| 253 | return cfg; |
| 254 | } |
| 255 | |
| 256 | /* Ensure the correct number of arguments have been provided. |
| 257 | * Pad with nil to allow other functions to simply check arg[i] |
no test coverage detected