ce0b41c847
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
13 lines
223 B
C++
13 lines
223 B
C++
#ifndef DEBUG_HH
|
|
#define DEBUG_HH
|
|
|
|
#include "config.h"
|
|
#include <iostream>
|
|
|
|
#ifdef DEBUG
|
|
#define fbdbg std::cerr<<__FILE__<<"("<<__LINE__<< "): "
|
|
#else
|
|
#define fbdbg if (false) std::cerr
|
|
#endif // DEBUG
|
|
|
|
#endif // DEBUG_HH
|