root/vtcross/branches/bhilburn/src/include/vtcross/error.h @ 145

Revision 145, 369 bytes (checked in by bhilburn, 15 years ago)

Adding a error reporting functions to a new header, error.h.

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
15void ERROR(int exit_code, char* msg)
16{
17    std::cerr << msg << std::endl;
18    exit(exit_code);
19}
20
21void WARNING(char* msg)
22{
23    std::cerr << msg << std::endl;
24}
25
26#endif
Note: See TracBrowser for help on using the browser.