source: trunk/lib/debug.hpp @ 2006

Last change on this file since 2006 was 1950, checked in by ksherdy, 7 years ago

Updated comments format.

File size: 496 bytes
Line 
1#ifndef DEBUG_HPP_
2#define DEBUG_HPP_
3
4/*=============================================================================
5  debug.hpp - Debug macros.
6  Created on:
7  Author: Ken Herdy
8=============================================================================*/
9
10#include <iostream>
11using namespace std;
12
13#ifdef NDEBUG
14#define MSG(str)
15#define VAR(name, value)
16#else
17#define MSG(str) cout << str << endl;
18#define VAR(name, value) cout << name << ":" << value << endl;
19#endif
20
21#endif // DEBUG_HPP_
Note: See TracBrowser for help on using the repository browser.