MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaL_checkversion_

Function luaL_checkversion_

libs/lua/lauxlib.c:1104–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102
1103
1104LUALIB_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

Callers

nothing calls this directly

Calls 2

lua_versionFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected