dprintf.h
author Hajime Tazaki <tazaki@nict.go.jp>
Wed, 13 Feb 2013 22:37:34 +0900
changeset 651 9d7e2cd9633b
parent 292 d9388274c680
permissions -rw-r--r--
add a testcase to reproduce threaded dlclose crash (Bug 1513)

#ifndef DPRINTF_H
#define DPRINTF_H

/**
 * This function uses no global variable and is thus fairly safe
 * to call from any situation.
 */
void dprintf (const char *str, ...);

#ifdef DPRINTF_DEBUG_ENABLE
#define DPRINTF(str,...) \
  dprintf(str, __VA_ARGS__)
#else
#define DPRINTF(str,...)
#endif

#endif /* DPRINTF_H */