diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2015-01-24 00:54:17 +0100 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2015-01-24 00:54:17 +0100 |
commit | ddf17edc80948d47af84f5977028df9611c75fff (patch) | |
tree | 00fc1e2e6845f088a8ee991f81ce1e09d5d55c38 /lprefix.h | |
parent | 315b2b7a39d979df2a993e671694b2b9b4cec624 (diff) | |
download | lua-compat-5.3-ddf17edc80948d47af84f5977028df9611c75fff.tar.gz lua-compat-5.3-ddf17edc80948d47af84f5977028df9611c75fff.tar.bz2 lua-compat-5.3-ddf17edc80948d47af84f5977028df9611c75fff.zip |
better performance for lua_compare; some code refactoring
Diffstat (limited to 'lprefix.h')
-rw-r--r-- | lprefix.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -96,13 +96,6 @@ static void compat53_rawseti (lua_State *L, int i, lua_Integer n) { | |||
96 | } | 96 | } |
97 | # undef lua_rawseti | 97 | # undef lua_rawseti |
98 | # define lua_rawseti compat53_rawseti | 98 | # define lua_rawseti compat53_rawseti |
99 | /* we have lua_compare emulation for Lua 5.1, but it involves calling | ||
100 | * Lua code, and the only use in the table library is for '<', so ... | ||
101 | */ | ||
102 | # if LUA_VERSION_NUM == 501 | ||
103 | # undef lua_compare | ||
104 | # define lua_compare(L, a, b, op) lua_lessthan(L, a, b) | ||
105 | # endif | ||
106 | #endif /* ltablib_c */ | 99 | #endif /* ltablib_c */ |
107 | 100 | ||
108 | #ifdef lstrlib_c | 101 | #ifdef lstrlib_c |