26 #if defined (HAVE_CONFIG_H)
33 #include <QMutexLocker>
34 #include <QProcessEnvironment>
44 : m_debugEnabled (false)
46 QProcessEnvironment pe (QProcessEnvironment::systemEnvironment ());
48 if (pe.value (
"QTHANDLES_DEBUG",
"0") !=
"0")
67 #define STATIC_LOGGER(fcn) \
68 void Logger::fcn (const char *fmt, ...) \
70 QMutexLocker lock (s_mutex); \
73 instance ()->fcn ## V (fmt, vl); \
84 vfprintf (stderr, fmt, arg);
85 fprintf (stderr,
"\n");
#define STATIC_LOGGER(fcn)
static Logger * instance(void)
void debugV(const char *fmt, va_list arg)
static Logger * s_instance
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn