diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.h | 4 |
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. */ | |||
| 125 | "next" value, and test the result to see if it's NULL_INTERVAL. */ | 125 | "next" value, and test the result to see if it's NULL_INTERVAL. */ |
| 126 | #define INTERVAL_PARENT_OR_NULL(i) (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) | 126 | #define INTERVAL_PARENT_OR_NULL(i) (INTERVAL_HAS_PARENT (i) ? INTERVAL_PARENT (i) : 0) |
| 127 | 127 | ||
| 128 | /* Abort if interval I's size is negative. */ | ||
| 129 | #define CHECK_TOTAL_LENGTH(i) \ | ||
| 130 | if ((int) (i)->total_length < 0) abort (); else | ||
| 131 | |||
| 128 | /* Reset this interval to its vanilla, or no-property state. */ | 132 | /* Reset this interval to its vanilla, or no-property state. */ |
| 129 | #define RESET_INTERVAL(i) \ | 133 | #define RESET_INTERVAL(i) \ |
| 130 | { \ | 134 | { \ |