| 174 | |
| 175 | |
| 176 | static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, |
| 177 | StkId res, TMS event) { |
| 178 | const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ |
| 179 | if (ttisnil(tm)) |
| 180 | tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ |
| 181 | if (ttisnil(tm)) return 0; |
| 182 | callTM(L, tm, p1, p2, res, 1); |
| 183 | return 1; |
| 184 | } |
| 185 | |
| 186 | |
| 187 | static const TValue *get_equalTM (lua_State *L, Table *mt1, Table *mt2, |
no test coverage detected