|
So a question that comes to mind is this: why is there no sane way for
the host program to detect the Lua minor version either at compile time
or runtime?
#ifndef USE_BUG_WORKAROUND
int lua_ver = lua_version_release(L);
if (lua_ver >= 50303 && lua_ver < 50305)
luaL_error(L, "Recompile with correct lua version");
#endif