summaryrefslogtreecommitdiff
path: root/include/qntan/Log.h
blob: 87adba38d1ff85f148e0b687d7d36fd8aec71247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef INCGUARD_A5xxH0Ai6CpNInqK
#define INCGUARD_A5xxH0Ai6CpNInqK

#ifdef __cplusplus
extern "C" {
#endif



#ifndef LOGF
#	define LOGF(A, ...) if(A) (*(A))->fatal(A, __VA_ARGS__)
#endif

#ifndef LOGE
#	define LOGE(A, ...) if(A) (*(A))->error(A, __VA_ARGS__)
#endif

#ifndef LOGW
#	define LOGW(A, ...) if(A) (*(A))->warn(A, __VA_ARGS__)
#endif

#ifndef LOGI
#	define LOGI(A, ...) if(A) (*(A))->info(A, __VA_ARGS__)
#endif

#ifndef LOGD
#	define LOGD(A, ...) if(A) (*(A))->debug(A, __VA_ARGS__)
#endif

#ifndef LOGT
#	define LOGT(A, ...) if(A) (*(A))->trace(A, __VA_ARGS__)
#endif



#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* INCGUARD_A5xxH0Ai6CpNInqK */