| 122 | |
| 123 | |
| 124 | int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2, |
| 125 | StkId res, TMS event) { |
| 126 | const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ |
| 127 | if (ttisnil(tm)) |
| 128 | tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ |
| 129 | if (ttisnil(tm)) return 0; |
| 130 | luaT_callTM(L, tm, p1, p2, res, 1); |
| 131 | return 1; |
| 132 | } |
| 133 | |
| 134 | |
| 135 | void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, |
no test coverage detected