| 163 | |
| 164 | |
| 165 | static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, |
| 166 | StkId res, TMS event) { |
| 167 | const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ |
| 168 | if (ttisnil(tm)) |
| 169 | tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ |
| 170 | if (ttisnil(tm)) return 0; |
| 171 | callTMres(L, res, tm, p1, p2); |
| 172 | return 1; |
| 173 | } |
| 174 | |
| 175 | |
| 176 | static const TValue *get_compTM (lua_State *L, Table *mt1, Table *mt2, |
no test coverage detected