| 284 | |
| 285 | |
| 286 | static int arith (lua_State *L, int op, const char *mtname) { |
| 287 | if (tonum(L, 1) && tonum(L, 2)) |
| 288 | lua_arith(L, op); /* result will be on the top */ |
| 289 | else |
| 290 | trymt(L, mtname); |
| 291 | return 1; |
| 292 | } |
| 293 | |
| 294 | |
| 295 | static int arith_add (lua_State *L) { |