]> git.donarmstrong.com Git - lilypond.git/commit
Improve 'warning-as-error handling again
authorPatrick McCarty <pnorcks@gmail.com>
Thu, 17 Sep 2009 07:09:33 +0000 (00:09 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 18 Sep 2009 01:55:15 +0000 (18:55 -0700)
commitd9b0a7c0fba0297b2b9afdc2a79603b8a7a314af
treecb2b6c8dcfc28a6e1438df38e8479f3e25f0c091
parent8262e9148d500bfb6f8dbc28630e89229758bf50
Improve 'warning-as-error handling again

Currently, on the Scheme side, ly:warning and ly:programming-error are
redefined to ly:error.  This works, but if the user wants to override
this setting in an LY file, he will not be able to.

This commit moves the handling for the callbacks to C++, thus permitting
users to override -dwarning-as-error in LY files for calls to ly:warning
and ly:programming-error.
lily/general-scheme.cc
scm/lily.scm