Mercurial > hg > Members > kono > Cerium
comparison TaskManager/include/error.h @ 366:09f33c51a204
rename include/TaskManager/* and add memory
author | aaa |
---|---|
date | Mon, 27 Jul 2009 15:51:18 +0900 |
parents | include/TaskManager/error.h@2ddf79a7c5fb |
children | 31d0a5baafdf |
comparison
equal
deleted
inserted
replaced
365:f8769040a5df | 366:09f33c51a204 |
---|---|
1 #ifndef CERIUM_ERR | |
2 #define CERIUM_ERR | |
3 | |
4 #ifdef DEBUG | |
5 # include <stdio.h> | |
6 # define __debug(...) do { \ | |
7 fprintf(stderr, __VA_ARGS__); \ | |
8 } while (0) | |
9 #else /* DEBUG */ | |
10 # define __debug(...) | |
11 #endif | |
12 | |
13 #ifdef DEBUG | |
14 # include <stdio.h> | |
15 # define __debug_ppe(...) do { \ | |
16 printf("[PPE] "); printf(__VA_ARGS__); \ | |
17 } while (0) | |
18 #else /* DEBUG */ | |
19 # define __debug_ppe(...) | |
20 #endif | |
21 | |
22 #ifdef DEBUG | |
23 # include <stdio.h> | |
24 # define __debug_spe(...) do { \ | |
25 printf("[SPE] "); printf(__VA_ARGS__); \ | |
26 } while (0) | |
27 #else /* DEBUG */ | |
28 # define __debug_spe(...) | |
29 #endif | |
30 #endif |