314
|
1 #ifndef CERIUM_ERR
|
|
2 #define CERIUM_ERR
|
|
3
|
30
|
4 #ifdef DEBUG
|
|
5 # include <stdio.h>
|
|
6 # define __debug(...) do { \
|
50
|
7 fprintf(stderr, __VA_ARGS__); \
|
30
|
8 } while (0)
|
|
9 #else /* DEBUG */
|
|
10 # define __debug(...)
|
|
11 #endif
|
42
|
12
|
314
|
13 #ifdef DEBUG
|
42
|
14 # include <stdio.h>
|
|
15 # define __debug_ppe(...) do { \
|
109
|
16 printf("[PPE] "); printf(__VA_ARGS__); \
|
42
|
17 } while (0)
|
|
18 #else /* DEBUG */
|
43
|
19 # define __debug_ppe(...)
|
42
|
20 #endif
|
|
21
|
314
|
22 #ifdef DEBUG
|
109
|
23 # include <stdio.h>
|
|
24 # define __debug_spe(...) do { \
|
|
25 printf("[SPE] "); printf(__VA_ARGS__); \
|
|
26 } while (0)
|
|
27 #else /* DEBUG */
|
314
|
28 # define __debug_spe(...)
|
109
|
29 #endif
|
314
|
30 #endif
|