| 1351 | |
| 1352 | |
| 1353 | LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) { |
| 1354 | lua_Number v = lua_version(L); |
| 1355 | if (sz != LUAL_NUMSIZES) /* check numeric types */ |
| 1356 | luaL_error(L, "core and library have incompatible numeric types"); |
| 1357 | else if (v != ver) |
| 1358 | luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f", |
| 1359 | (LUAI_UACNUMBER)ver, (LUAI_UACNUMBER)v); |
| 1360 | } |
| 1361 |
nothing calls this directly
no test coverage detected