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