aboutsummaryrefslogtreecommitdiff
path: root/tst/va_test.c
blob: 9457239bce26eba6a54c2d4b66674a23b57080eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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;
}