MCPcopy Create free account
hub / github.com/defold/defold / json_cfg_encode_number_precision

Function json_cfg_encode_number_precision

engine/script/src/luacjson/lua_cjson.c:349–354  ·  view source on GitHub ↗

Configures number precision when converting doubles to text */

Source from the content-addressed store, hash-verified

347
348/* Configures number precision when converting doubles to text */
349static int json_cfg_encode_number_precision(lua_State *l)
350{
351 json_config_t *cfg = json_arg_init(l, 1);
352
353 return json_integer_option(l, 1, &cfg->encode_number_precision, 1, 16);
354}
355
356/* Configures how to treat empty table when encode lua table */
357static int json_cfg_encode_empty_table_as_object(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