X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9dc3ee6d54bfa7c261f80ad632f6c2d095477b98..ca01f454f01645533622a59ef0df335ee07679e5:/src/system.h diff --git a/src/system.h b/src/system.h index 8ea56531..8d2358c2 100644 --- a/src/system.h +++ b/src/system.h @@ -123,17 +123,26 @@ typedef size_t uintptr_t; | Assertions. | `-------------*/ -/* 's assertions are too heavyweight, and can be disabled - too easily, so use aver rather than assert. See discussions at +/* In the past, Bison defined aver to simply invoke abort in the case of + a failed assertion. The rationale was that 's assertions + were too heavyweight and could be disabled too easily. See + discussions at . + + However, normal assert output can be helpful during development and + in bug reports from users. Moreover, it's not clear now that + 's assertions are significantly heavyweight. Finally, if + users want to experiment with disabling assertions, it's debatable + whether it's our responsibility to stop them. See discussion + starting at + . + + For now, we use assert but we call it aver throughout Bison in case + we later wish to try another scheme. */ -static inline void -aver (bool assertion) -{ - if (! assertion) - abort (); -} +#include +#define aver assert /*-----------.