MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaT_callorderiTM

Function luaT_callorderiTM

third-party/lua-5.4.6/src/ltm.c:221–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
222 int flip, int isfloat, TMS event) {
223 TValue aux; const TValue *p2;
224 if (isfloat) {
225 setfltvalue(&aux, cast_num(v2));
226 }
227 else
228 setivalue(&aux, v2);
229 if (flip) { /* arguments were exchanged? */
230 p2 = p1; p1 = &aux; /* correct them */
231 }
232 else
233 p2 = &aux;
234 return luaT_callorderTM(L, p1, p2, event);
235}
236
237
238void luaT_adjustvarargs (lua_State *L, int nfixparams, CallInfo *ci,

Callers

nothing calls this directly

Calls 1

luaT_callorderTMFunction · 0.70

Tested by

no test coverage detected