source: trunk/lib/debug.hpp @ 1923

Last change on this file since 1923 was 1749, checked in by ksherdy, 7 years ago

Debug macros.

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