Back to index

im-sdk  12.3.91
Functions
debug.c File Reference
#include <stdio.h>
#include <stdarg.h>

Go to the source code of this file.

Functions

void DEBUG_printf (const char *fmt,...)

Function Documentation

void DEBUG_printf ( const char *  fmt,
  ... 
)

Definition at line 8 of file debug.c.

{
#ifdef DEBUG
    va_list args;
    char str[1024];

    if (fmt == NULL)
       return;

    va_start(args, fmt);
    fprintf(stderr, str, vsprintf(str, fmt, args));
    fflush(stderr);
    va_end(args);
    return;
#endif
}