Go to the documentation of this file.
12 #include <sys/types.h>
14 #if defined (__GNUC__) || defined(__SUNPRO_CC)
18 # define DEBUG_FUNCTION __func__
21 # define __PRETTY_FUNCTION__ "(unknown)"
22 # define DEBUG_FUNCTION __PRETTY_FUNCTION__
26 char* shorten(
const char* FILE);
29 #define DEBUGL(doit, msg)\
30 DPL(doit, "[34m[" << concepts::shorten(__FILE__) << ':' << std::setw(4) \
31 << __LINE__ << "][m " << DEBUG_FUNCTION << " --", msg)
33 #define DPL(doit, msg, var)\
34 if(doit!=0) std::cout << msg << " " << var << std::endl;
36 #define DP(doit, msg, var)\
37 if(doit!=0) std::cout << msg << " " << var;
40 # define DEBUGL(doit, msg)
41 # define DP(doit, msg, var)
42 # define DPL(doit, msg, var)
44 # define NDEBUG // discard assertions
Basic namespace for Concepts-2.