diff options
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools.h b/src/tools.h index f775c70..b48114c 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -32,7 +32,9 @@ void luaL_requiref (lua_State* L, const char* modname, lua_CFunction openf, int | |||
32 | 32 | ||
33 | // wrap Lua 5.2 calls under Lua 5.1 API when it is simpler that way | 33 | // wrap Lua 5.2 calls under Lua 5.1 API when it is simpler that way |
34 | #if LUA_VERSION_NUM == 502 | 34 | #if LUA_VERSION_NUM == 502 |
35 | #ifndef lua_equal // already defined when compatibility is active in luaconf.h | ||
35 | #define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) | 36 | #define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) |
37 | #endif // lua_equal | ||
36 | #define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) | 38 | #define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) |
37 | #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) | 39 | #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) |
38 | #endif // LUA_VERSION_NUM == 502 | 40 | #endif // LUA_VERSION_NUM == 502 |