| 325 | |
| 326 | #if defined(DISABLE_INVALID_NUMBERS) && !defined(USE_INTERNAL_FPCONV) |
| 327 | void json_verify_invalid_number_setting(lua_State *l, int *setting) |
| 328 | { |
| 329 | if (*setting == 1) { |
| 330 | *setting = 0; |
| 331 | luaL_error(l, "Infinity, NaN, and/or hexadecimal numbers are not supported."); |
| 332 | } |
| 333 | } |
| 334 | #else |
| 335 | #define json_verify_invalid_number_setting(l, s) do { } while(0) |
| 336 | #endif |
no test coverage detected