blob: 9457239bce26eba6a54c2d4b66674a23b57080eb (
plain) (
tree)
|
|
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#ifdef __GNUC__
#define espik_debug_print(fmt, ...) \
{ \
fprintf (stdout, "%s+%i @%s: '", __FILE__, __LINE__, __func__); \
fprintf (stdout, fmt, __VA_ARGS__); \
fprintf (stdout, "'\n"); \
}
#endif /* __GNUC__ */
int main()
{
int a = 10;
espik_debug_print ("a : %d", a);
return 0;
}
|