You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
590 B
C

/*****************************************************************************
* software tracing with printf()
*****************************************************************************/
#ifndef MY_PRINTF_H
#define MY_PRINTF_H
#ifdef SPY /* tracing enabled? */
#include <stdio.h> /* for printf() */
#define MY_PRINTF(format_, ...) printf(format_, ##__VA_ARGS__)
#define MY_PRINTF_INIT() printf_init()
void printf_init();
#else /* tracing disabled */
#define MY_PRINTF(format_, ...) (0)
#define MY_PRINTF_INIT() ((void)0)
#endif /* SPY */
#endif /* MY_PRINTF_H */