make love lua 5.4 conform

This commit is contained in:
niki
2020-08-14 19:27:42 +02:00
parent 5f4d2f3323
commit 99e1c0034d
5 changed files with 19 additions and 6 deletions
+4 -2
View File
@@ -963,9 +963,11 @@ Type *luax_type(lua_State *L, int idx)
return Type::byName(luaL_checkstring(L, idx));
}
int luax_resume(lua_State *L, int nargs)
int luax_resume(lua_State *L, int nargs, int* nres)
{
#if LUA_VERSION_NUM >= 502
#if LUA_VERSION_NUM >= 504
return lua_resume(L, nullptr, nargs, nres);
#elif LUA_VERSION_NUM >= 502
return lua_resume(L, nullptr, nargs);
#else
return lua_resume(L, nargs);