]> git.eshelyaron.com Git - emacs.git/commitdiff
(CHECK_TOTAL_LENGTH): New macro.
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Apr 2003 20:29:13 +0000 (20:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Apr 2003 20:29:13 +0000 (20:29 +0000)
src/intervals.h

index d2511ae565c35698517634cf64289475b69bbc2c..e29e7d3aa010476207787ce5de19ba7764240d3a 100644 (file)
@@ -125,6 +125,10 @@ Boston, MA 02111-1307, USA.  */
    "next" value, and test the result to see if it's NULL_INTERVAL.  */
 #define INTERVAL_PARENT_OR_NULL(i) (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0)
 
+/* Abort if interval I's size is negative.  */
+#define CHECK_TOTAL_LENGTH(i) \
+  if ((int) (i)->total_length < 0) abort (); else
+
 /* Reset this interval to its vanilla, or no-property state. */
 #define RESET_INTERVAL(i) \
 { \