Mercurial > hg > Game > CbCTaskManager
annotate src/Debug.h @ 18:d31f9a0f9024
change interfaces of List.c.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 13 Jan 2010 17:26:58 +0900 |
parents | f06fb0370caf |
children |
rev | line source |
---|---|
5 | 1 #ifndef _DEBUG_H |
2 #define _DEBUG_H | |
3 | |
4 #ifdef DEBUG | |
18
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
5 |
13
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
6 #include <stdio.h> |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
7 #define __DEBUG(f, args...) \ |
5 | 8 fprintf(stderr, "in %s: "f, __FUNCTION__, ## args) |
13
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
9 #define __DEBUGnoF(f, args...) \ |
5 | 10 fprintf(stderr, f, ## args) |
18
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
11 |
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
12 #include <sched.h> |
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
13 #define YIELD \ |
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
14 sched_yield() |
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
15 |
5 | 16 #else |
18
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
17 |
13
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
18 #define __DEBUG(f, args...) |
f06fb0370caf
add pthread code that has not been debuged yet.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
19 #define __DEBUGnoF(f, args...) |
18
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
20 #define YIELD |
d31f9a0f9024
change interfaces of List.c.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
21 |
5 | 22 #endif |
23 | |
24 #endif /* !_DEBUG_H */ |