blob: 9b527f2790f1ca76b5ce6952f192ae9fe6039a57 (
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
|
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#ifdef __GNUC__
#define espik_debug_print(fmt, ...) \
{ \
fprintf (stdout, "%s, %s, %i: \n", __func__, __FILE__, __LINE__); \
vfprintf (stdout, fmt, __VA_ARGS__); \
}
#endif /* __GNUC__ */
int main()
{
int a = 10;
espik_debug_print ("a : %d\n", a);
return (0);
}
|