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

Function luaT_callorderiTM

third-party/lua-5.5.0/src/ltm.c:210–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209
210int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
211 int flip, int isfloat, TMS event) {
212 TValue aux; const TValue *p2;
213 if (isfloat) {
214 setfltvalue(&aux, cast_num(v2));
215 }
216 else
217 setivalue(&aux, v2);
218 if (flip) { /* arguments were exchanged? */
219 p2 = p1; p1 = &aux; /* correct them */
220 }
221 else
222 p2 = &aux;
223 return luaT_callorderTM(L, p1, p2, event);
224}
225
226
227/*

Callers

nothing calls this directly

Calls 1

luaT_callorderTMFunction · 0.70

Tested by

no test coverage detected