MCPcopy Create free account
hub / github.com/F-Stack/f-stack / call_binTM

Function call_binTM

app/redis-6.2.6/deps/lua/src/lvm.c:165–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2,
166 StkId res, TMS event) {
167 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
168 if (ttisnil(tm))
169 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
170 if (ttisnil(tm)) return 0;
171 callTMres(L, res, tm, p1, p2);
172 return 1;
173}
174
175
176static const TValue *get_compTM (lua_State *L, Table *mt1, Table *mt2,

Callers 3

luaV_concatFunction · 0.70
ArithFunction · 0.70
luaV_executeFunction · 0.70

Calls 2

callTMresFunction · 0.85
luaT_gettmbyobjFunction · 0.70

Tested by

no test coverage detected