MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / json_cfg_encode_max_depth

Function json_cfg_encode_max_depth

deps/lua/src/lua_cjson.c:281–286  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

json_arg_initFunction · 0.85
json_integer_optionFunction · 0.85

Tested by

no test coverage detected