From b42162f5526360acc6930e3d2e296af1fef08e63 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 28 Feb 2004 11:03:42 +0000 Subject: [PATCH] Added REV_COMPARE(x,y) which is equivalent to COMPARE(y,x), but it's better readable to use both of them instead of swapping the arguments. --- lib/lib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lib.h b/lib/lib.h index 0b50314f..a36b5be6 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -40,6 +40,7 @@ #define GLUE(x,y) x##y #define GLUE_(x,y) x##_##y #define COMPARE(x,y) do { if ((x)<(y)) return -1; if ((x)>(y)) return 1; } while(0) +#define REV_COMPARE(x,y) COMPARE(y,x) /* Logging */ -- 2.39.2