source: trunk/lib/debug.hpp @ 2286

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

Removed problematic 'using namespace std;'

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