summaryrefslogtreecommitdiff
path: root/src/bin/e_log.h
blob: 41007809711b1e37af61d92964cbe0fe5c07cf7d (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
#ifdef E_TYPEDEFS

#else
#ifndef E_LOG_H
#define E_LOG_H


#ifdef E_LOGGING
#undef DBG
#undef INF
#undef WRN
#undef ERR
#undef CRI
#define DBG(...)            EINA_LOG_DOM_DBG(e_log_dom, __VA_ARGS__)
#define INF(...)            EINA_LOG_DOM_INFO(e_log_dom, __VA_ARGS__)
#define WRN(...)            EINA_LOG_DOM_WARN(e_log_dom, __VA_ARGS__)
#define ERR(...)            EINA_LOG_DOM_ERR(e_log_dom, __VA_ARGS__)
#define CRI(...)            EINA_LOG_DOM_CRIT(e_log_dom, __VA_ARGS__)

EINTERN extern int e_log_dom;

EINTERN int e_log_init(void);
EINTERN int e_log_shutdown(void);
#else
#undef DBG
#undef INF
#undef WRN
#undef ERR
#undef CRI
#define DBG(...)            printf(__VA_ARGS__); putc('\n', stdout)
#define INF(...)            printf(__VA_ARGS__); putc('\n', stdout)
#define WRN(...)            printf(__VA_ARGS__); putc('\n', stdout)
#define ERR(...)            printf(__VA_ARGS__); putc('\n', stdout)
#define CRI(...)            printf(__VA_ARGS__); putc('\n', stdout)
#endif

#endif
#endif