| 15003 | |
| 15004 | |
| 15005 | static const TValue *get_compTM (lua_State *L, Table *mt1, Table *mt2, |
| 15006 | TMS event) { |
| 15007 | const TValue *tm1 = fasttm(L, mt1, event); |
| 15008 | const TValue *tm2; |
| 15009 | if (tm1 == NULL) return NULL; /* no metamethod */ |
| 15010 | if (mt1 == mt2) return tm1; /* same metatables => same metamethods */ |
| 15011 | tm2 = fasttm(L, mt2, event); |
| 15012 | if (tm2 == NULL) return NULL; /* no metamethod */ |
| 15013 | if (luaO_rawequalObj(tm1, tm2)) /* same metamethods? */ |
| 15014 | return tm1; |
| 15015 | return NULL; |
| 15016 | } |
| 15017 | |
| 15018 | |
| 15019 | static int call_orderTM (lua_State *L, const TValue *p1, const TValue *p2, |
no test coverage detected