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

Function json_cfg_decode_max_depth

LuaSTGPlus/LuaExtensions/cjson4lua/lua_cjson.c:293–298  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

291/* Configures the maximum number of nested arrays/objects allowed when
292 * encoding */
293static int json_cfg_decode_max_depth(lua_State *l)
294{
295 json_config_t *cfg = json_arg_init(l, 1);
296
297 return json_integer_option(l, 1, &cfg->decode_max_depth, 1, INT_MAX);
298}
299
300/* Configures number precision when converting doubles to text */
301static int json_cfg_encode_number_precision(lua_State *l)

Callers

nothing calls this directly

Calls 2

json_arg_initFunction · 0.85
json_integer_optionFunction · 0.85

Tested by

no test coverage detected