| 106 | |
| 107 | |
| 108 | int luaT_callbinTM(lua_State *L, const TValue *p1, const TValue *p2, |
| 109 | StkId res, TMS event) { |
| 110 | const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ |
| 111 | if (ttisnil(tm)) |
| 112 | tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ |
| 113 | if (ttisnil(tm)) return 0; |
| 114 | luaT_callTM(L, tm, p1, p2, res, 1); |
| 115 | return 1; |
| 116 | } |
| 117 | |
| 118 | |
| 119 | void luaT_trybinTM(lua_State *L, const TValue *p1, const TValue *p2, |
no test coverage detected