aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2020-04-23 16:53:52 -0600
committerJoey Yakimowich-Payne <jyapayne@gmail.com>2020-04-26 09:11:56 -0600
commit9e799ee3b19ac152d1c2403c6af1e3806e1a31fe (patch)
tree95494a86039e99eb545431e8d946dadd43be03d8 /tests/include
parent2813dc61f22aecaaaa82054f144a48c4de520cf2 (diff)
downloadnimterop-9e799ee3b19ac152d1c2403c6af1e3806e1a31fe.tar.gz
nimterop-9e799ee3b19ac152d1c2403c6af1e3806e1a31fe.zip
Fix tmath tests
Modify tmath.nim to have one skip symbol Fix macro expansion with common value Fix tmath again
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/tast2.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h
index e72a3b8..815791f 100644
--- a/tests/include/tast2.h
+++ b/tests/include/tast2.h
@@ -24,14 +24,14 @@ extern "C" {
#define MATHEXPR (1 + 2/3*20 - 100)
#define ANDEXPR (100 & 11000)
#define CASTEXPR (char) 34
-#define a 100
-#define b 200
-#define EQ1 a <= b
-#define EQ2 a >= b
-#define EQ3 a > b
-#define EQ4 a < b
-#define EQ5 a != b
-#define EQ6 a == b
+#define AVAL 100
+#define BVAL 200
+#define EQ1 AVAL <= BVAL
+#define EQ2 AVAL >= BVAL
+#define EQ3 AVAL > BVAL
+#define EQ4 AVAL < BVAL
+#define EQ5 AVAL != BVAL
+#define EQ6 AVAL == BVAL
#define SIZEOF sizeof(char)