Configures the maximum number of nested arrays/objects allowed when * encoding */
| 290 | /* Configures the maximum number of nested arrays/objects allowed when |
| 291 | * encoding */ |
| 292 | static 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 */ |
nothing calls this directly
no test coverage detected