Revision 144, 431 bytes
(checked in by bhilburn, 15 years ago)
|
Slightly modified the debug fuction and added a new LOG function.
|
Line | |
---|
1 | /* Virginia Tech Cognitive Radio Open Source Systems |
---|
2 | * Virginia Tech, 2009 |
---|
3 | * |
---|
4 | * LICENSE INFORMATION GOES HERE |
---|
5 | */ |
---|
6 | |
---|
7 | /* DESCRIPTION OF FILE. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef DEBUG_H |
---|
11 | #define DEBUG_H |
---|
12 | |
---|
13 | #include <iostream> |
---|
14 | |
---|
15 | extern bool VTCROSS_DEBUG; |
---|
16 | |
---|
17 | #define DEBUG(class, msg) \ |
---|
18 | if(VTCROSS_DEBUG) \ |
---|
19 | std::cout << #class << ": " << msg << std::endl; |
---|
20 | |
---|
21 | #define LOG(function, msg) \ |
---|
22 | std::cout << #function << ": " << msg << std::endl; |
---|
23 | |
---|
24 | #endif |
---|