Configures the maximum number of nested arrays/objects allowed when * encoding */
| 330 | /* Configures the maximum number of nested arrays/objects allowed when |
| 331 | * encoding */ |
| 332 | static int json_cfg_encode_max_depth(lua_State *l) |
| 333 | { |
| 334 | json_config_t *cfg = json_arg_init(l, 1); |
| 335 | |
| 336 | return json_integer_option(l, 1, &cfg->encode_max_depth, 1, INT_MAX); |
| 337 | } |
| 338 | |
| 339 | /* Configures the maximum number of nested arrays/objects allowed when |
| 340 | * encoding */ |
nothing calls this directly
no test coverage detected