File: misc.cpp

package info (click to toggle)
aris-extractor 1.6.2-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 388 kB
  • ctags: 270
  • sloc: cpp: 3,694; sh: 2,571; makefile: 79
file content (19 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdarg.h>
#include <stdio.h>

/* #define DEBUG */

extern FILE * pDebugLog;

void debug(char *format, ...)
{
  if( pDebugLog )
  {
	va_list ap;
    va_start(ap, format);
    vfprintf(pDebugLog, format, ap);
    fflush(pDebugLog);
    va_end(ap);
  }
}