diff options
| author | amelia squires <[email protected]> | 2025-04-16 13:54:00 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2025-04-16 13:54:00 -0500 |
| commit | b2ee662b4621282b137a2a2cf1be13bd60073c5a (patch) | |
| tree | 280ab21571a29f76d880c939642175602e6177e0 /src/lua.h | |
| parent | 8887668e977ff1c6e213768b954b086f6be0738c (diff) | |
fixes for 5.1v0.0.0
Diffstat (limited to 'src/lua.h')
| -rw-r--r-- | src/lua.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -79,7 +79,7 @@ int writer(lua_State*, const void*, size_t, void*); #define lua_objlen(L,i) lua_rawlen(L,(i))
#define luaL_register(L, M, F) luaL_newlib(L, F);
-#elif LUA_VERSION_NUM = 501
+#elif LUA_VERSION_NUM == 501
#define luaL_tolstring lua_tolstring
#define lua_dump(A, B, C, D) lua_dump(A, B, C)
@@ -87,6 +87,8 @@ int writer(lua_State*, const void*, size_t, void*); #define lua_rawlen lua_objlen
#define lua_gc(A, B) lua_gc(A, B, 0)
+
+ #define lua_pushglobaltable(L) {lua_getglobal(L, "_G");}
#endif
|
