aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compat.h b/src/compat.h
index ceb1275..43f8922 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -61,10 +61,6 @@ inline char const* lua_typename(lua_State* L_, LuaType t_)
61// add some Lua 5.3-style API when building for Lua 5.1 61// add some Lua 5.3-style API when building for Lua 5.1
62#if LUA_VERSION_NUM == 501 62#if LUA_VERSION_NUM == 501
63 63
64inline int lua_absindex(lua_State* L_, int idx_)
65{
66 return (((idx_) >= 0 || (idx_) <= LUA_REGISTRYINDEX) ? (idx_) : lua_gettop(L_) + (idx_) + 1);
67}
68#if LUAJIT_VERSION_NUM < 20200 // moonjit is 5.1 plus bits of 5.2 that we don't need to wrap 64#if LUAJIT_VERSION_NUM < 20200 // moonjit is 5.1 plus bits of 5.2 that we don't need to wrap
69inline void lua_pushglobaltable(lua_State* L_) 65inline void lua_pushglobaltable(lua_State* L_)
70{ 66{