MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_checkversion_

Function luaL_checkversion_

src/Chain/libraries/glua/lauxlib.cpp:3035–3044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3033
3034
3035LUALIB_API void luaL_checkversion_(lua_State *L, lua_Number ver, size_t sz) {
3036 const lua_Number *v = lua_version(L);
3037 if (sz != LUAL_NUMSIZES) /* check numeric types */
3038 luaL_error(L, "core and library have incompatible numeric types");
3039 if (v != lua_version(nullptr))
3040 luaL_error(L, "multiple Lua VMs detected");
3041 else if (*v != ver)
3042 luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f",
3043 ver, *v);
3044}
3045

Callers

nothing calls this directly

Calls 2

lua_versionFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected