source: trunk/lib/debug.hpp @ 2128

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

Minor updates.

File size: 552 bytes
RevLine 
[1749]1#ifndef DEBUG_HPP_
2#define DEBUG_HPP_
3
[1950]4/*=============================================================================
5  debug.hpp - Debug macros.
6  Created on:
7  Author: Ken Herdy
8=============================================================================*/
9
[1749]10#include <iostream>
11using namespace std;
12
[2093]13// #define NDEBUG // if NDEBUG then disable assertions
14
[1749]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
[1950]23#endif // DEBUG_HPP_
Note: See TracBrowser for help on using the repository browser.