summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-04-06 20:29:13 +0000
committerRichard M. Stallman <rms@gnu.org>2003-04-06 20:29:13 +0000
commit299bebaa7c80f2649498d90e3687b32be36dafd6 (patch)
tree91296e00fe1815aecbabd12e1e0d85b26015c920
parent07d601b09323ffba61a1c5afe2a4b8ae04d1d1b1 (diff)
downloademacs-299bebaa7c80f2649498d90e3687b32be36dafd6.tar.gz
(CHECK_TOTAL_LENGTH): New macro.
-rw-r--r--src/intervals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intervals.h b/src/intervals.h
index d2511ae565c..e29e7d3aa01 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -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) \
{ \