mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
18 lines
268 B
C++
18 lines
268 B
C++
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
|
|
extern int debug_level;
|
|
|
|
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
|
|
}
|
|
}
|