aboutsummaryrefslogblamecommitdiff
path: root/tst/va_test.c
blob: b8a83f4b6c70bb91534971915694e7cf16e484ba (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                   
                   
 
               
 


                                                                             
                                              
 
 
                      
 


                   
 
                                          


                   
#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);
}