diff options
Diffstat (limited to 'Sluift/sluift.h')
-rw-r--r-- | Sluift/sluift.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Sluift/sluift.h b/Sluift/sluift.h index b82e1c4..2613370 100644 --- a/Sluift/sluift.h +++ b/Sluift/sluift.h @@ -20,6 +20,10 @@ #include <lua.h> #endif +#if LUA_VERSION_NUM < 502 +#define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) +#endif + #if defined(__cplusplus) extern "C" #endif |