openldap/contrib/gtk-tool/utils.cc

18 lines
268 B
C++
Raw Normal View History

1998-12-02 10:15:49 -05:00
#include <stdio.h>
#include <stdarg.h>
extern int debug_level;
1998-12-02 10:15:49 -05:00
int debug(const char *format,...) {
if (debug_level > 0) {
//#ifdef DEBUG
va_list args;
int ret;
va_start(args, format);
ret = vprintf(format, args);
va_end(args);
return ret;
//#endif
}
1998-12-02 10:15:49 -05:00
}