MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaT_callbinTM

Function luaT_callbinTM

libraries/AP_Scripting/lua/src/ltm.c:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125
126int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
127 StkId res, TMS event) {
128 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */
129 if (ttisnil(tm))
130 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
131 if (ttisnil(tm)) return 0;
132 luaT_callTM(L, tm, p1, p2, res, 1);
133 return 1;
134}
135
136
137void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,

Callers 2

luaT_trybinTMFunction · 0.85
luaT_callorderTMFunction · 0.85

Calls 2

luaT_gettmbyobjFunction · 0.85
luaT_callTMFunction · 0.85

Tested by

no test coverage detected