Back to index

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