| 1102 | |
| 1103 | |
| 1104 | LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) { |
| 1105 | lua_Number v = lua_version(L); |
| 1106 | if (sz != LUAL_NUMSIZES) /* check numeric types */ |
| 1107 | luaL_error(L, "core and library have incompatible numeric types"); |
| 1108 | else if (v != ver) |
| 1109 | luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f", |
| 1110 | (LUAI_UACNUMBER)ver, (LUAI_UACNUMBER)v); |
| 1111 | } |
| 1112 |
nothing calls this directly
no test coverage detected