MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / call_binTM

Function call_binTM

other_src/lua/src/lvm.cpp:167–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2,
168 StkId res, TMS event) {
169 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
170 if (ttisnil(tm))
171 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
172 if (ttisnil(tm)) return 0;
173 callTMres(L, res, tm, p1, p2);
174 return 1;
175}
176
177
178static 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

luaT_gettmbyobjFunction · 0.70
callTMresFunction · 0.70

Tested by

no test coverage detected