source: trunk/lib_c/debug.h @ 4067

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

check in IDISA C library and other support libraries. Some template features still remain.

File size: 617 bytes
Line 
1/* Generated by cpp2c.rb from ./debug.hpp
2 * Use IDISA C support
3*/
4
5#ifndef DEBUG_H_
6#define DEBUG_H_
7
8/*=============================================================================
9  debug.hpp - Debug macros.
10  Created on:
11  Author: Ken Herdy
12=============================================================================*/
13
14#include <iostream>
15
16// #define NDEBUG // if NDEBUG then disable assertions
17
18#ifdef NDEBUG
19#define MSG(str)
20#define VAR(name, value)
21#else
22#define MSG(str) std::cout << str << std::endl;
23#define VAR(name, value) std::cout << name << ":" << value << std::endl;
24#endif
25
26#endif // DEBUG_H_
27
Note: See TracBrowser for help on using the repository browser.