From 712a9c5afc6d9b965e6906e41a7f5b282ce75435 Mon Sep 17 00:00:00 2001 From: cancel Date: Mon, 3 Dec 2018 11:39:54 +0900 Subject: [PATCH] Remove unnecessary macro indirection --- sim.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sim.c b/sim.c index 15359d5..5a79cc3 100644 --- a/sim.c +++ b/sim.c @@ -265,16 +265,13 @@ Usz usz_clamp(Usz val, Usz min, Usz max) { _delta_x, OPER_PORT_FLIP_LOCK_BIT(_flags)) #define END_PORTS } -#define OPER_MOVE_OR_EXPLODE(_delta_y, _delta_x) \ - oper_move_relative_or_explode(gbuffer, mbuffer, height, width, \ - This_oper_char, y, x, _delta_y, _delta_x) - #define MOVING_OPERATOR(_oper_name, _delta_y, _delta_x) \ BEGIN_DUAL_PHASE_0(_oper_name) \ if (IS_AWAKE) { \ REALIZE_DUAL; \ STOP_IF_DUAL_INACTIVE; \ - OPER_MOVE_OR_EXPLODE(_delta_y, _delta_x); \ + oper_move_relative_or_explode(gbuffer, mbuffer, height, width, \ + This_oper_char, y, x, _delta_y, _delta_x); \ } \ END_PHASE \ BEGIN_DUAL_PHASE_1(_oper_name) \