Additional debugging info.

git-svn-id: http://www.cdkersey.com/harp/harptool@115 0246edb2-e076-4747-b392-db732a341fa2
This commit is contained in:
chad
2013-01-17 09:04:30 +00:00
parent 3ceabe2a61
commit 4428bcd1b7
7 changed files with 41 additions and 17 deletions

View File

@@ -10,10 +10,14 @@
#define D(lvl, x) do { \
using namespace std; \
if ((lvl) <= USE_DEBUG) { \
cout << "DEBUG " << __FILE__ << ':' << dec << __LINE__ << ": " \
cerr << "DEBUG " << __FILE__ << ':' << dec << __LINE__ << ": " \
<< x << endl; \
} \
} while(0)
#define D_RAW(x) do { \
std::cerr << x; \
} while (0)
#else
#define D(lvl, x) do {} while(0)