From: fred Date: Mon, 4 Nov 1996 15:18:40 +0000 (+0000) Subject: lilypond-0.0.9 X-Git-Tag: release/1.5.59~6926 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=04b446b92eded13573752578c4d0322f3e512c43;p=lilypond.git lilypond-0.0.9 --- diff --git a/src/debug.cc b/src/debug.cc new file mode 100644 index 0000000000..d55c901945 --- /dev/null +++ b/src/debug.cc @@ -0,0 +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); +}