MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / call_orderTM

Function call_orderTM

Source/Misc/lua/src/lua.c:15019–15029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15017
15018
15019static int call_orderTM (lua_State *L, const TValue *p1, const TValue *p2,
15020TMS event) {
15021const TValue *tm1 = luaT_gettmbyobj(L, p1, event);
15022const TValue *tm2;
15023if (ttisnil(tm1)) return -1; /* no metamethod? */
15024tm2 = luaT_gettmbyobj(L, p2, event);
15025if (!luaO_rawequalObj(tm1, tm2)) /* different metamethods? */
15026return -1;
15027callTMres(L, L->top, tm1, p1, p2);
15028return !l_isfalse(L->top);
15029}
15030
15031
15032static 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