/*
 * Debug helper functions...
 *
 * $Date$
 * $Revision$
 *
 */

//#if !defined (NDEBUG) && !defined (DPRINTF)
#include "WImage/debug.h"
#include <cstdio>
#include <cstdarg>

#if !(defined __WATCOMC__ && __WATCOMC__ < 1230)
using namespace std;
#endif

int debug_printf (const char *tmpl, ...)
{
  va_list ap;
  int result;

  va_start (ap, tmpl);
  result = vfprintf (stderr, tmpl, ap);
  va_end (ap);
  return result;
}

//#endif
