aboutsummaryrefslogtreecommitdiff
path: root/tst/va_test.c
blob: 96cd65d2214e2f5d3f48419060149474bc49c6dd (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);
}