]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2787: Sanitize usage of -DDEBUG, -DNDEBUG and assert
authorDavid Kastrup <dak@gnu.org>
Tue, 12 May 2015 17:01:57 +0000 (19:01 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 19 May 2015 06:34:05 +0000 (08:34 +0200)
commita4cc910a3401d25bb94ff0ecb4dc18f681c71004
tree550dd809beeb5a52534be8730752c456cfb9b114
parent818367a0c9b21501b0459e69f188591f5db0a0f5
Issue 2787: Sanitize usage of -DDEBUG, -DNDEBUG and assert

The compiler option -DNDEBUG is no longer being used: -DNDEBUG disables
the assert function, and assert is essentially stating that the program
cannot useful continue if the assertion is not met.  -DNDEBUG is
basically an option for compiling an application to a limited amount of
ROM when aborting with a diagnostic is not preferable to crashing.

This is not the case for LilyPond.  So expensive debugging options now
are enabled with -DDEBUG instead.  There is a new configure option
--enable-checking defaulting to "off" for this now.

At the current point of time, setting --disable-optimising also has the
effect of enabling the checks: this will be retained until Patchy has
been adapted to using --enable-checking.
12 files changed:
Documentation/contributor/programming-work.itexi
aclocal.m4
flower/include/pqueue.hh
flower/include/std-string.hh
flower/include/std-vector.hh
lily/context.cc
lily/engraver.cc
lily/grob-property.cc
lily/include/lily-guile-macros.hh
lily/include/smobs.hh
lily/lookup.cc
lily/prob.cc