| 394 | |
| 395 | #if defined(DISABLE_INVALID_NUMBERS) && !defined(USE_INTERNAL_FPCONV) |
| 396 | void 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 |
no test coverage detected