Configures number precision when converting doubles to text */
| 307 | |
| 308 | /* Configures number precision when converting doubles to text */ |
| 309 | static int json_cfg_encode_number_precision(lua_State *l) |
| 310 | { |
| 311 | json_config_t *cfg = json_arg_init(l, 1); |
| 312 | |
| 313 | return json_integer_option(l, 1, &cfg->encode_number_precision, 1, 18); |
| 314 | } |
| 315 | |
| 316 | /* Configures JSON encoding buffer persistence */ |
| 317 | static int json_cfg_encode_keep_buffer(lua_State *l) |
nothing calls this directly
no test coverage detected