blob: d55c90194598e28ce16802aa9abd58e3ef8fd7f2 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <fstream.h>
#include <std/new.h>
#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);
}
|