changeset 39681:87cc624f4e1e

(min, max): New macros.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 08 Oct 2001 07:59:17 +0000
parents 067fe9b28cd4
children 5f60884970a8
files src/lisp.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Mon Oct 08 07:43:23 2001 +0000
+++ b/src/lisp.h	Mon Oct 08 07:59:17 2001 +0000
@@ -3101,3 +3101,8 @@
 	    (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))