From 8a226de76604e91d83b7204443b0fed5f9b5789e Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 8 Oct 2001 07:59:17 +0000 Subject: [PATCH] (min, max): New macros. --- src/lisp.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lisp.h b/src/lisp.h index b483e72cef7..5a1b336aaff 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3101,3 +3101,8 @@ extern Lisp_Object Vdirectory_sep_char; (EQ (hare, tortoise) \ && (circular_list_error ((list)), 1))) \ : 0))) + +/* The ubiquitous min and max macros. */ + +#define min(a, b) ((a) < (b) ? (a) : (b)) +#define max(a, b) ((a) > (b) ? (a) : (b)) -- 2.39.2