Back to index

im-sdk  12.3.91
debug.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <stdarg.h>
00003 
00004 #include "config.h"
00005 
00006 void DEBUG_printf(const char *fmt, ...)
00007 {
00008 #ifdef DEBUG
00009     va_list args;
00010     char str[1024];
00011 
00012     if (fmt == NULL)
00013        return;
00014 
00015     va_start(args, fmt);
00016     fprintf(stderr, str, vsprintf(str, fmt, args));
00017     fflush(stderr);
00018     va_end(args);
00019     return;
00020 #endif
00021 }