MCPcopy Create free account
hub / github.com/defold/defold / call_orderTM

Function call_orderTM

engine/lua/src/lua/lvm.c:186–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185
186static int call_orderTM (lua_State *L, const TValue *p1, const TValue *p2,
187 TMS event) {
188 const TValue *tm1 = luaT_gettmbyobj(L, p1, event);
189 const TValue *tm2;
190 if (ttisnil(tm1)) return -1; /* no metamethod? */
191 tm2 = luaT_gettmbyobj(L, p2, event);
192 if (!luaO_rawequalObj(tm1, tm2)) /* different metamethods? */
193 return -1;
194 callTMres(L, L->top, tm1, p1, p2);
195 return !l_isfalse(L->top);
196}
197
198
199static 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