fluxbox/src/Debug.hh
Henrik Kinnunen ce0b41c847 Changed #ifdef DEBUG ... cerr << to using fbdbg.
This will reduce the number of #ifdef DEBUG for
simple debug messages.
include "Debug.hh" and use fbdbg instead of cerr for debug.
2010-03-17 16:35:07 +01:00

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