Restore lua 5.2/5.3 compatibility (fixes #1408)

This commit is contained in:
Bart van Strien
2018-05-03 20:04:16 +02:00
parent ee166ed806
commit fb793944e4
3 changed files with 16 additions and 1 deletions
+9
View File
@@ -879,4 +879,13 @@ Type *luax_type(lua_State *L, int idx)
return Type::byName(luaL_checkstring(L, idx));
}
int luax_resume(lua_State *L, int nargs)
{
#if LUA_VERSION_NUM >= 502
return lua_resume(L, nullptr, nargs);
#else
return lua_resume(L, nargs);
#endif
}
} // love