mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
14 lines
206 B
C++
14 lines
206 B
C++
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
|
|
int debug(const char *format,...) {
|
|
#ifdef DEBUG
|
|
va_list args;
|
|
int ret;
|
|
va_start(args, format);
|
|
ret = vprintf(format, args);
|
|
va_end(args);
|
|
return ret;
|
|
#endif
|
|
}
|