ref: 4c2209f0860c61de26b06453f334314638e0d99c
parent: 5e309426990f6d9d5ff2d05135448e4f3edc9aa1
author: cancel <cancel@cancel.fm>
date: Tue Nov 27 08:06:18 EST 2018
Cleanup macro naming
--- a/sim.c
+++ b/sim.c
@@ -153,7 +153,7 @@
{ \
bool const Oper_ports_enabled = Dual_is_active;
-#define DUAL_REQUIRE_TRIGGER \
+#define STOP_IF_DUAL_INACTIVE \
if (!Dual_is_active) \
return
@@ -186,7 +186,7 @@
BEGIN_DUAL_PHASE_0(_oper_name) \
BEGIN_HASTE \
REALIZE_DUAL; \
- DUAL_REQUIRE_TRIGGER; \
+ STOP_IF_DUAL_INACTIVE; \
OPER_MOVE_OR_EXPLODE(_delta_y, _delta_x); \
END_HASTE \
END_PHASE \
@@ -225,7 +225,7 @@
END_PHASE
BEGIN_DUAL_PHASE_1(add)
REALIZE_DUAL;
- DUAL_REQUIRE_TRIGGER;
+ STOP_IF_DUAL_INACTIVE;
Glyph inp0 = OPER_PEEK(0, 1);
Glyph inp1 = OPER_PEEK(0, 2);
Glyph g = glyphs_sum(inp0, inp1);
@@ -242,7 +242,7 @@
END_PHASE
BEGIN_DUAL_PHASE_1(modulo)
REALIZE_DUAL;
- DUAL_REQUIRE_TRIGGER;
+ STOP_IF_DUAL_INACTIVE;
Glyph inp0 = OPER_PEEK(0, 1);
Glyph inp1 = OPER_PEEK(0, 2);
Glyph g = glyphs_mod(inp0, inp1);