source: trunk/lib_c/cpp2c/expected_output/debug.hpp @ 3393

Last change on this file since 3393 was 3393, checked in by linmengl, 6 years ago

add cpp2c.rb script offically, add testing framework

File size: 546 bytes
Line 
1#ifndef DEBUG_H_
2#define DEBUG_H_
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_H_
23
Note: See TracBrowser for help on using the repository browser.