Revision 159, 350 bytes
(checked in by bhilburn, 15 years ago)
|
Fixed a potential bug that would have occured if parenthesis were not included
around conditional ERRORs, LOGs, etc.
|
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 ERROR_H |
---|
11 | #define ERROR_H |
---|
12 | |
---|
13 | #include <cstdio> |
---|
14 | |
---|
15 | #define ERROR(exit_code, ...) { \ |
---|
16 | fprintf(stderr, __VA_ARGS__); \ |
---|
17 | exit(exit_code); } |
---|
18 | |
---|
19 | #define WARNING(...) fprintf(stderr, __VA_ARGS__) |
---|
20 | |
---|
21 | #endif |
---|