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


                   
                   
 
               
 
                                     
   


                                                                         
 
 
                      
 


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