MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / call_orderTM

Function call_orderTM

lua/lvm.c:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198
199static int call_orderTM (lua_State *L, const TValue *p1, const TValue *p2,
200 TMS event) {
201 const TValue *tm1 = luaT_gettmbyobj(L, p1, event);
202 const TValue *tm2;
203 if (ttisnil(tm1)) return -1; /* no metamethod? */
204 tm2 = luaT_gettmbyobj(L, p2, event);
205 if (!luaO_rawequalObj(tm1, tm2)) /* different metamethods? */
206 return -1;
207 callTMres(L, L->top, tm1, p1, p2);
208 return !l_isfalse(L->top);
209}
210
211
212static int l_strcmp (const TString *ls, const TString *rs) {

Callers 2

luaV_lessthanFunction · 0.85
lessequalFunction · 0.85

Calls 3

luaT_gettmbyobjFunction · 0.85
luaO_rawequalObjFunction · 0.85
callTMresFunction · 0.85

Tested by

no test coverage detected