| 136 | |
| 137 | |
| 138 | static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, |
| 139 | StkId res, TMS event) { |
| 140 | const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ |
| 141 | if (notm(tm)) |
| 142 | tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ |
| 143 | if (notm(tm)) |
| 144 | return -1; /* tag method not found */ |
| 145 | else /* call tag method and return the tag of the result */ |
| 146 | return luaT_callTMres(L, tm, p1, p2, res); |
| 147 | } |
| 148 | |
| 149 | |
| 150 | void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, |
no test coverage detected