Revision 139, 399 bytes
(checked in by bhilburn, 15 years ago)
|
Created error.h and debug.h for VTCROSS error/warning reporting.
|
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 <iostream> |
---|
14 | #include <string> |
---|
15 | |
---|
16 | void ERROR(int exit_code, std::string msg) |
---|
17 | { |
---|
18 | std::cerr << msg << std::endl; |
---|
19 | exit(exit_code); |
---|
20 | } |
---|
21 | |
---|
22 | void WARNING(std::string msg) |
---|
23 | { |
---|
24 | std::cerr << msg << std::endl; |
---|
25 | } |
---|
26 | |
---|
27 | #endif |
---|