source: trunk/lib/debug.hpp @ 2196

Last change on this file since 2196 was 2093, checked in by ksherdy, 7 years ago

Minor updates.

File size: 552 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// #define NDEBUG // if NDEBUG then disable assertions
14
15#ifdef NDEBUG
16#define MSG(str)
17#define VAR(name, value)
18#else
19#define MSG(str) cout << str << endl;
20#define VAR(name, value) cout << name << ":" << value << endl;
21#endif
22
23#endif // DEBUG_HPP_
Note: See TracBrowser for help on using the repository browser.