| 219 | |
| 220 | |
| 221 | int 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 | |
| 238 | void luaT_adjustvarargs (lua_State *L, int nfixparams, CallInfo *ci, |
nothing calls this directly
no test coverage detected