summaryrefslogtreecommitdiff
path: root/hdr/debug.hh
blob: fb3a07059392048105261d69eae1ae65da4d1410 (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
28
#ifndef DEBUG_HH
#define DEBUG_HH
#include <assert.h>
#include <iostream.h>
#include "dstream.hh"

void error(String s);		// errors

// warnings
void warning(String s);
#define WARN warnout << "warning: "<<__FUNCTION__ << "(): "
extern ostream &warnout ;

// progress
extern ostream *mlog;

// debugging
extern Dstream monitor; // monitor

#ifdef NPRINT
#define mtor if (0) monitor	// clever hack 
#else
#define mtor monitor.identify_as(__PRETTY_FUNCTION__)
#endif



#endif