blob: 200585608b7868697c75b25cb31fb2d5a8f5cd66 (
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
|
#ifndef DEBUG_HH
#define DEBUG_HH
#include <assert.h>
#include <iostream.h>
#include "dstream.hh"
#define WARN warnout << "warning: "<<__FUNCTION__ << "(): "
extern ostream &warnout ;
extern ostream *mlog;
extern ostream *nulldev;
extern Dstream monitor; // monitor
#ifdef NPRINT
#define mtor *nulldev
#else
#define mtor monitor.identify_as(__PRETTY_FUNCTION__)
#endif
void error(String s);
void warning(String s);
#endif
|