spielwiese
Last change
on this file since c74d6a was
341696,
checked in by Hans Schönemann <hannes@…>, 15 years ago
|
Adding Id property to all files
git-svn-id: file:///usr/local/Singular/svn/trunk@12231 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3a3fce] | 1 | /* emacs edit mode for this file is -*- C++ -*- */ |
---|
[341696] | 2 | /* $Id$ */ |
---|
[3a3fce] | 3 | |
---|
| 4 | /* It should be possible to include this file multiple times for different */ |
---|
| 5 | /* settings of DEBUGOUTPUT */ |
---|
| 6 | |
---|
| 7 | #undef DEBINCLEVEL |
---|
| 8 | #undef DEBDECLEVEL |
---|
| 9 | #undef DEBOUTSL |
---|
| 10 | #undef DEBOUT |
---|
| 11 | #undef DEBOUTENDL |
---|
| 12 | #undef DEBOUTLN |
---|
| 13 | |
---|
| 14 | #ifdef DEBUGOUTPUT |
---|
[1dc616] | 15 | #ifdef HAVE_IOSTREAM |
---|
| 16 | #include <iostream> |
---|
| 17 | #elif defined(HAVE_IOSTREAM_H) |
---|
[3a3fce] | 18 | #include <iostream.h> |
---|
[1dc616] | 19 | #endif |
---|
[3a3fce] | 20 | void deb_inc_level(); |
---|
| 21 | void deb_dec_level(); |
---|
| 22 | extern char * deb_level_msg; |
---|
| 23 | #define DEBINCLEVEL(stream, msg) \ |
---|
| 24 | (stream << deb_level_msg << "entering << " << msg << " >>" << endl, deb_inc_level()) |
---|
| 25 | #define DEBDECLEVEL(stream, msg) \ |
---|
| 26 | (deb_dec_level(), stream << deb_level_msg << "leaving << " << msg << " >>" << endl) |
---|
| 27 | #define DEBOUTSL(stream) \ |
---|
| 28 | (stream << deb_level_msg, stream.flush()) |
---|
| 29 | #define DEBOUT(stream, objects) \ |
---|
| 30 | (stream << objects, stream.flush()) |
---|
| 31 | #define DEBOUTENDL(stream) \ |
---|
| 32 | (stream << endl) |
---|
[433d1a] | 33 | #define DEBOUTLN(stream, objects) \ |
---|
| 34 | (stream << deb_level_msg << objects << endl) |
---|
[3a3fce] | 35 | #else /* DEBUGOUTPUT */ |
---|
| 36 | #define DEBINCLEVEL(stream, msg) |
---|
| 37 | #define DEBDECLEVEL(stream, msg) |
---|
| 38 | #define DEBOUTSL(stream) |
---|
| 39 | #define DEBOUT(stream, objects) |
---|
| 40 | #define DEBOUTENDL(stream) |
---|
[433d1a] | 41 | #define DEBOUTLN(stream, objects) |
---|
[3a3fce] | 42 | #endif /* DEBUGOUTPUT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.