| 297 | |
| 298 | |
| 299 | LUA_API int lua_lessthan (lua_State *L, int index1, int index2) { |
| 300 | StkId o1, o2; |
| 301 | int i; |
| 302 | lua_lock(L); /* may call tag method */ |
| 303 | o1 = index2adr(L, index1); |
| 304 | o2 = index2adr(L, index2); |
| 305 | i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0 |
| 306 | : luaV_lessthan(L, o1, o2); |
| 307 | lua_unlock(L); |
| 308 | return i; |
| 309 | } |
| 310 | |
| 311 | |
| 312 |
no test coverage detected