MCPcopy Create free account
hub / github.com/defold/defold / json_fetch_config

Function json_fetch_config

engine/script/src/luacjson/lua_cjson.c:245–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244#if 0 // DEFOLD
245static 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]

Callers 3

json_arg_initFunction · 0.85
json_encodeFunction · 0.85
json_decodeFunction · 0.85

Calls 2

lua_touserdataFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected