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

Function json_verify_invalid_number_setting

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

Source from the content-addressed store, hash-verified

394
395#if defined(DISABLE_INVALID_NUMBERS) && !defined(USE_INTERNAL_FPCONV)
396void json_verify_invalid_number_setting(lua_State *l, int *setting)
397{
398 if (*setting == 1) {
399 *setting = 0;
400 luaL_error(l, "Infinity, NaN, and/or hexadecimal numbers are not supported.");
401 }
402}
403#else
404#define json_verify_invalid_number_setting(l, s) do { } while(0)
405#endif

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected