comparison TaskManager/include/error.h @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:04e28d8d3c6f
1 #ifndef CERIUM_ERR
2 #define CERIUM_ERR
3
4 #ifdef DEBUG
5 # include <stdio.h>
6 # define __debugs(s, ...) do { \
7 s->printf(__VA_ARGS__); \
8 } while (0)
9 #else /* DEBUG */
10 # define __debug(...)
11 #endif
12
13 #ifdef DEBUG
14 # include <stdio.h>
15 # define __debugs_ppe(s, ...) do { \
16 s->printf("[PPE] ", __VA_ARGS__); \
17 } while (0)
18 #else /* DEBUG */
19 # define __debug_ppe(...)
20 #endif
21
22 #ifdef DEBUG
23 # include <stdio.h>
24 # define __debugs_spe(s, ...) do { \
25 s->printf("[SPE] ", __VA_ARGS__); \
26 } while (0)
27 #else /* DEBUG */
28 # define __debug_spe(...)
29 #endif
30 #endif