Mercurial > emacs
diff src/intervals.h @ 50470:c7a0b787faef
(CHECK_TOTAL_LENGTH): New macro.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 06 Apr 2003 20:29:13 +0000 |
parents | ce84fbc6175f |
children | 4370ce3fabb3 |
line wrap: on
line diff
--- a/src/intervals.h Sun Apr 06 20:28:28 2003 +0000 +++ b/src/intervals.h Sun Apr 06 20:29:13 2003 +0000 @@ -125,6 +125,10 @@ "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) \ { \