From 2ed40018fa50e4aaa9aff44560bc3af86633feac Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 5 Apr 2013 18:29:43 +0300 Subject: Added lua_lessthan to 5.2 build retrocompatibility --- src/tools.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/tools.h b/src/tools.h index 10711d4..2fe7259 100644 --- a/src/tools.h +++ b/src/tools.h @@ -33,6 +33,7 @@ void luaL_requiref (lua_State* L, const char* modname, lua_CFunction openf, int // wrap Lua 5.2 calls under Lua 5.1 API when it is simpler that way #if LUA_VERSION_NUM == 502 #define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) +#define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) #endif // LUA_VERSION_NUM == 502 -- cgit v1.2.3-55-g6feb