shithub: orca

Download patch

ref: 7298dc56dd2c22690288ba0facf94a8391888e4a
parent: df6f9d5aa5b32a24cd24d985e15c19b1dc38002f
author: cancel <cancel@cancel.fm>
date: Tue Nov 27 08:02:35 EST 2018

Cleanup more macro naming

--- a/sim.c
+++ b/sim.c
@@ -153,7 +153,7 @@
   {                                                                            \
     bool const Oper_ports_enabled = Dual_is_active;
 
-#define OPER_DUAL_REQUIRE_TRIGGER()                                            \
+#define DUAL_REQUIRE_TRIGGER                                                   \
   if (!Dual_is_active)                                                         \
   return
 
@@ -186,7 +186,7 @@
   BEGIN_DUAL_PHASE_0(_oper_name)                                               \
     BEGIN_HASTE                                                                \
       REALIZE_DUAL;                                                            \
-      OPER_DUAL_REQUIRE_TRIGGER();                                             \
+      DUAL_REQUIRE_TRIGGER;                                                    \
       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;
-  OPER_DUAL_REQUIRE_TRIGGER();
+  DUAL_REQUIRE_TRIGGER;
   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;
-  OPER_DUAL_REQUIRE_TRIGGER();
+  DUAL_REQUIRE_TRIGGER;
   Glyph inp0 = OPER_PEEK(0, 1);
   Glyph inp1 = OPER_PEEK(0, 2);
   Glyph g = glyphs_mod(inp0, inp1);