| 2146 | |
| 2147 | |
| 2148 | LUA_API int lua_lessthan (lua_State *L, int index1, int index2) { |
| 2149 | StkId o1, o2; |
| 2150 | int i; |
| 2151 | lua_lock(L); /* may call tag method */ |
| 2152 | o1 = index2adr(L, index1); |
| 2153 | o2 = index2adr(L, index2); |
| 2154 | i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0 |
| 2155 | : luaV_lessthan(L, o1, o2); |
| 2156 | lua_unlock(L); |
| 2157 | return i; |
| 2158 | } |
| 2159 | |
| 2160 | |
| 2161 |
no test coverage detected