MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / json_cfg_encode_max_depth

Function json_cfg_encode_max_depth

LuaSTGPlus/LuaExtensions/cjson4lua/lua_cjson.c:284–289  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

282/* Configures the maximum number of nested arrays/objects allowed when
283 * encoding */
284static int json_cfg_encode_max_depth(lua_State *l)
285{
286 json_config_t *cfg = json_arg_init(l, 1);
287
288 return json_integer_option(l, 1, &cfg->encode_max_depth, 1, INT_MAX);
289}
290
291/* Configures the maximum number of nested arrays/objects allowed when
292 * encoding */

Callers

nothing calls this directly

Calls 2

json_arg_initFunction · 0.85
json_integer_optionFunction · 0.85

Tested by

no test coverage detected