From 257e91024728455050b5a822b86884e5abea49da Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 20 Sep 2025 18:13:19 +0200 Subject: [PATCH] libutil/comparator: support > for generation Change-Id: Idd40b06c7051b9b0bd4c125359af0eb69996313a Signed-off-by: Raito Bezarius --- lix/libutil/comparator.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lix/libutil/comparator.hh b/lix/libutil/comparator.hh index 136a3f742..fd13c200c 100644 --- a/lix/libutil/comparator.hh +++ b/lix/libutil/comparator.hh @@ -24,6 +24,8 @@ GENERATE_ONE_CMP(prefix, qualification, ==, my_type, args) #define GENERATE_LEQ(prefix, qualification, my_type, args...) \ GENERATE_ONE_CMP(prefix, qualification, <, my_type, args) +#define GENERATE_GEQ(prefix, qualification, my_type, args...) \ + GENERATE_ONE_CMP(prefix, qualification, >, my_type, args) #define GENERATE_NEQ(prefix, qualification, my_type, args...) \ GENERATE_ONE_CMP(prefix, qualification, !=, my_type, args) @@ -63,9 +65,10 @@ * ``` */ #define GENERATE_CMP(args...) \ - GENERATE_EQUAL(,,args) \ - GENERATE_LEQ(,,args) \ - GENERATE_NEQ(,,args) + GENERATE_EQUAL(, , args) \ + GENERATE_LEQ(, , args) \ + GENERATE_GEQ(, , args) \ + GENERATE_NEQ(, , args) /** * @param prefix This is for something before each declaration like