MCPcopy Create free account
hub / github.com/axmolengine/axmol / json_cfg_encode_number_precision

Function json_cfg_encode_number_precision

3rdparty/lua/lua-cjson/lua_cjson.c:309–314  ·  view source on GitHub ↗

Configures number precision when converting doubles to text */

Source from the content-addressed store, hash-verified

307
308/* Configures number precision when converting doubles to text */
309static 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 */
317static int json_cfg_encode_keep_buffer(lua_State *l)

Callers

nothing calls this directly

Calls 2

json_arg_initFunction · 0.85
json_integer_optionFunction · 0.85

Tested by

no test coverage detected