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