| 208 | |
| 209 | |
| 210 | int 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 | /* |
nothing calls this directly
no test coverage detected