summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-04-27 19:12:05 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-04-27 19:12:05 -0700
commit77d1199f8a7d7a5be06d8dfa0b0394f803fd8525 (patch)
tree0395b62a5dcf00b84decec2b99e3fce784dfa6e5 /lib.h
parent6e10b08485741a5c960f32b80f43ab6e9070ea0a (diff)
downloadtxr-77d1199f8a7d7a5be06d8dfa0b0394f803fd8525.tar.gz
txr-77d1199f8a7d7a5be06d8dfa0b0394f803fd8525.tar.bz2
txr-77d1199f8a7d7a5be06d8dfa0b0394f803fd8525.zip
lib: move TAG_PAIR out of arith.c.
The TAG_PAIR macro is going to be useful outside of the math module. * arith.c (TAG_PAIR): Macro removed. * lib.h (TAG_PAIR): Added here--oh look!--next to the very similar and related TYPE_PAIR.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index d95642b1..f1437e53 100644
--- a/lib.h
+++ b/lib.h
@@ -73,6 +73,7 @@ typedef enum type {
#define TYPE_SHIFT 5
#define TYPE_PAIR(A, B) ((A) << TYPE_SHIFT | (B))
+#define TAG_PAIR(A, B) ((A) << TAG_SHIFT | (B))
typedef enum functype
{