]> git.eshelyaron.com Git - emacs.git/commitdiff
(min, max): New macros.
authorGerd Moellmann <gerd@gnu.org>
Mon, 8 Oct 2001 07:59:17 +0000 (07:59 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 8 Oct 2001 07:59:17 +0000 (07:59 +0000)
src/lisp.h

index b483e72cef70eb060d76bf54a0ac11620a1b5fd7..5a1b336aaff19d44770e737474cc45f9b472f16e 100644 (file)
@@ -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))