Configures number precision when converting doubles to text */
| 296 | |
| 297 | /* Configures number precision when converting doubles to text */ |
| 298 | static int json_cfg_encode_number_precision(lua_State *l) |
| 299 | { |
| 300 | json_config_t *cfg = json_arg_init(l, 1); |
| 301 | |
| 302 | return json_integer_option(l, 1, &cfg->encode_number_precision, 1, 14); |
| 303 | } |
| 304 | |
| 305 | /* Configures JSON encoding buffer persistence */ |
| 306 | static int json_cfg_encode_keep_buffer(lua_State *l) |
nothing calls this directly
no test coverage detected