diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-04-05 18:29:43 +0300 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-04-05 18:29:43 +0300 |
commit | 2ed40018fa50e4aaa9aff44560bc3af86633feac (patch) | |
tree | 4660f1874aafbe87321946e8027b2e976e81e548 /src/tools.h | |
parent | b5877ab6a59d09fb6009bd89581cad9fab7e7e0c (diff) | |
download | lanes-2ed40018fa50e4aaa9aff44560bc3af86633feac.tar.gz lanes-2ed40018fa50e4aaa9aff44560bc3af86633feac.tar.bz2 lanes-2ed40018fa50e4aaa9aff44560bc3af86633feac.zip |
Added lua_lessthan to 5.2 build retrocompatibility
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
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 | #define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) | 35 | #define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) |
36 | #define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) | ||
36 | #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) | 37 | #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) |
37 | #endif // LUA_VERSION_NUM == 502 | 38 | #endif // LUA_VERSION_NUM == 502 |
38 | 39 | ||