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