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

Function call_binTM

Source/Misc/lua/src/lua.c:14994–15002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14992
14993
14994static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2,
14995StkId res, TMS event) {
14996const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
14997if (ttisnil(tm))
14998tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
14999if (ttisnil(tm)) return 0;
15000callTMres(L, res, tm, p1, p2);
15001return 1;
15002}
15003
15004
15005static const TValue *get_compTM (lua_State *L, Table *mt1, Table *mt2,

Callers 3

luaV_concatFunction · 0.85
ArithFunction · 0.85
luaV_executeFunction · 0.85

Calls 2

luaT_gettmbyobjFunction · 0.85
callTMresFunction · 0.85

Tested by

no test coverage detected