X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c842365a01977bcf69f285116953c54622b19d7c..095a1d11ca90852ad224bbf9823bf88b7fff9a57:/src/system.h diff --git a/src/system.h b/src/system.h index 8ea56531..0bd684f0 100644 --- a/src/system.h +++ b/src/system.h @@ -1,7 +1,7 @@ /* System-dependent definitions for Bison. - Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 - Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, + 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 /*-----------.