aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/comparator.hh
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-05-19 14:51:34 +0200
committerregnat <rg@regnat.ovh>2021-05-26 18:44:17 +0200
commita22755721b51949dbf03bc1eb156d6f37dc10bac (patch)
tree3531730d3a18fa5dff91df82304167d1d2d75caf /src/libutil/comparator.hh
parentce1a6c6b13070bf4d9d6d4aedb8158333eaef9b3 (diff)
Recursively substitute the realisations
Make sure that whenever we substitute a realisation, we also substitute its entire closure
Diffstat (limited to 'src/libutil/comparator.hh')
-rw-r--r--src/libutil/comparator.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/comparator.hh b/src/libutil/comparator.hh
index 0315dc506..eecd5b819 100644
--- a/src/libutil/comparator.hh
+++ b/src/libutil/comparator.hh
@@ -25,6 +25,8 @@
}
#define GENERATE_EQUAL(args...) GENERATE_ONE_CMP(==, args)
#define GENERATE_LEQ(args...) GENERATE_ONE_CMP(<, args)
+#define GENERATE_NEQ(args...) GENERATE_ONE_CMP(!=, args)
#define GENERATE_CMP(args...) \
GENERATE_EQUAL(args) \
- GENERATE_LEQ(args)
+ GENERATE_LEQ(args) \
+ GENERATE_NEQ(args)