Configures the maximum number of nested arrays/objects allowed when * encoding */
| 288 | /* Configures the maximum number of nested arrays/objects allowed when |
| 289 | * encoding */ |
| 290 | static int json_cfg_decode_max_depth(lua_State *l) |
| 291 | { |
| 292 | json_config_t *cfg = json_arg_init(l, 1); |
| 293 | |
| 294 | return json_integer_option(l, 1, &cfg->decode_max_depth, 1, INT_MAX); |
| 295 | } |
| 296 | |
| 297 | /* Configures number precision when converting doubles to text */ |
| 298 | static int json_cfg_encode_number_precision(lua_State *l) |
nothing calls this directly
no test coverage detected