From: fred Date: Mon, 4 Nov 1996 15:18:41 +0000 (+0000) Subject: lilypond-0.0.7 X-Git-Tag: release/1.5.59~6925 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9d79a847f74d13f4fadcb696fdb0c3a90b5d89af;p=lilypond.git lilypond-0.0.7 --- diff --git a/debug.cc b/debug.cc index 34859a3c9f..d55c901945 100644 --- a/debug.cc +++ b/debug.cc @@ -1,12 +1,27 @@ #include +#include #include "debug.hh" #include "dstream.hh" #include "vector.hh" Dstream monitor(&cout,".dstreamrc"); ostream * nulldev = new ofstream("/dev/null"); + + +/* + want to do a stacktrace . + */ +void +mynewhandler() +{ + cerr << "Out of free store memory. Aborting.. "<< flush; + assert(false); +} + + void debug_init() { + set_new_handler(&mynewhandler); set_matrix_debug(monitor); }