diff options
Diffstat (limited to 'src/compat.h')
-rw-r--r-- | src/compat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compat.h b/src/compat.h index 037a3ba..a7ad1f3 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -36,11 +36,11 @@ extern "C" | |||
36 | #define lua_setuservalue lua_setfenv | 36 | #define lua_setuservalue lua_setfenv |
37 | #define lua_getuservalue lua_getfenv | 37 | #define lua_getuservalue lua_getfenv |
38 | #define lua_rawlen lua_objlen | 38 | #define lua_rawlen lua_objlen |
39 | #define luaG_registerlibfuncs(L, _funcs) luaL_register(L, nullptr, _funcs) | 39 | #define luaG_registerlibfuncs(L_, _funcs) luaL_register(L_, nullptr, _funcs) |
40 | #define LUA_OK 0 | 40 | #define LUA_OK 0 |
41 | #define LUA_ERRGCMM 666 // doesn't exist in Lua 5.1, we don't care about the actual value | 41 | #define LUA_ERRGCMM 666 // doesn't exist in Lua 5.1, we don't care about the actual value |
42 | void luaL_requiref(lua_State* L, const char* modname, lua_CFunction openf, int glb); // implementation copied from Lua 5.2 sources | 42 | void luaL_requiref(lua_State* L_, const char* modname, lua_CFunction openf, int glb); // implementation copied from Lua 5.2 sources |
43 | #define lua504_dump(L, writer, data, strip) lua_dump(L, writer, data) | 43 | #define lua504_dump(L_, writer_, data_, strip_) lua_dump(L_, writer_, data_) |
44 | #define LUA_LOADED_TABLE "_LOADED" // // doesn't exist in Lua 5.1 | 44 | #define LUA_LOADED_TABLE "_LOADED" // // doesn't exist in Lua 5.1 |
45 | 45 | ||
46 | #endif // LUA_VERSION_NUM == 501 | 46 | #endif // LUA_VERSION_NUM == 501 |