annotate include/TaskManager/error.h @ 314:2ddf79a7c5fb

debugging
author root@localhost.localdomain
date Tue, 09 Jun 2009 01:22:11 +0900
parents 5c194c71eca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
314
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
1 #ifndef CERIUM_ERR
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
2 #define CERIUM_ERR
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
3
30
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
4 #ifdef DEBUG
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
5 # include <stdio.h>
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
6 # define __debug(...) do { \
50
7927e00fb8e2 *** empty log message ***
gongo
parents: 43
diff changeset
7 fprintf(stderr, __VA_ARGS__); \
30
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
8 } while (0)
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
9 #else /* DEBUG */
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
10 # define __debug(...)
bd5fc2e3f8c7 *** empty log message ***
gongo
parents: 3
diff changeset
11 #endif
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
12
314
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
13 #ifdef DEBUG
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
14 # include <stdio.h>
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
15 # define __debug_ppe(...) do { \
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
16 printf("[PPE] "); printf(__VA_ARGS__); \
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
17 } while (0)
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
18 #else /* DEBUG */
43
db136fb5c21d *** empty log message ***
gongo
parents: 42
diff changeset
19 # define __debug_ppe(...)
42
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
20 #endif
aa11038dbdc1 *** empty log message ***
gongo
parents: 30
diff changeset
21
314
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
22 #ifdef DEBUG
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
23 # include <stdio.h>
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
24 # define __debug_spe(...) do { \
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
25 printf("[SPE] "); printf(__VA_ARGS__); \
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
26 } while (0)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
27 #else /* DEBUG */
314
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
28 # define __debug_spe(...)
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents: 50
diff changeset
29 #endif
314
2ddf79a7c5fb debugging
root@localhost.localdomain
parents: 109
diff changeset
30 #endif