| 285 | |
| 286 | |
| 287 | LUA_API int lua_equal (lua_State *L, int index1, int index2) { |
| 288 | StkId o1, o2; |
| 289 | int i; |
| 290 | lua_lock(L); /* may call tag method */ |
| 291 | o1 = index2adr(L, index1); |
| 292 | o2 = index2adr(L, index2); |
| 293 | i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0 : equalobj(L, o1, o2); |
| 294 | lua_unlock(L); |
| 295 | return i; |
| 296 | } |
| 297 | |
| 298 | |
| 299 | LUA_API int lua_lessthan (lua_State *L, int index1, int index2) { |
nothing calls this directly
no test coverage detected