Selene icon indicating copy to clipboard operation
Selene copied to clipboard

Wider Lua compatibility...

Open snichols opened this issue 9 years ago • 1 comments

Simplifying code that deals with various versions of Lua.

snichols avatar Feb 06 '16 22:02 snichols

LuaJit 2.1

#if LUA_VERSION_NUM < 502
static void luaL_setmetatable(lua_State *L, const char *tname) {
    luaL_getmetatable(L, tname);
    lua_setmetatable(L, -2);
} /* luaL_setmetatable() */
#endif

ghost avatar Apr 20 '16 00:04 ghost