MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / luaL_checkversion_

Function luaL_checkversion_

lua/src/lauxlib.c:1098–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096
1097
1098LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) {
1099 lua_Number v = lua_version(L);
1100 if (sz != LUAL_NUMSIZES) /* check numeric types */
1101 luaL_error(L, "core and library have incompatible numeric types");
1102 else if (v != ver)
1103 luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f",
1104 (LUAI_UACNUMBER)ver, (LUAI_UACNUMBER)v);
1105}
1106

Callers

nothing calls this directly

Calls 2

lua_versionFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected