MCPcopy Create free account
hub / github.com/axmolengine/axmol / json_cfg_encode_max_depth

Function json_cfg_encode_max_depth

3rdparty/lua/lua-cjson/lua_cjson.c:292–297  ·  view source on GitHub ↗

Configures the maximum number of nested arrays/objects allowed when * encoding */

Source from the content-addressed store, hash-verified

290/* Configures the maximum number of nested arrays/objects allowed when
291 * encoding */
292static int json_cfg_encode_max_depth(lua_State *l)
293{
294 json_config_t *cfg = json_arg_init(l, 1);
295
296 return json_integer_option(l, 1, &cfg->encode_max_depth, 1, INT_MAX);
297}
298
299/* Configures the maximum number of nested arrays/objects allowed when
300 * encoding */

Callers

nothing calls this directly

Calls 2

json_arg_initFunction · 0.85
json_integer_optionFunction · 0.85

Tested by

no test coverage detected