| 2519 | "end\n"; |
| 2520 | |
| 2521 | COMPAT53_API void lua_arith(lua_State *L, int op) { |
| 2522 | if (op < LUA_OPADD || op > LUA_OPUNM) |
| 2523 | luaL_error(L, "invalid 'op' argument for lua_arith"); |
| 2524 | luaL_checkstack(L, 5, "not enough stack slots"); |
| 2525 | if (op == LUA_OPUNM) |
| 2526 | lua_pushvalue(L, -1); |
| 2527 | lua_pushnumber(L, op); |
| 2528 | lua_insert(L, -3); |
| 2529 | compat53_call_lua(L, compat53_arith_code, |
| 2530 | sizeof(compat53_arith_code) - 1, 3, 1); |
| 2531 | } |
| 2532 | |
| 2533 | static const char compat53_compare_code[] = |
| 2534 | "local a,b=...\n" |
nothing calls this directly
no test coverage detected