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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #ifndef _DEBUG_H
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #define _DEBUG_H
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 #endif
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
91a07e20e06d commit.
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 #endif /* !_DEBUG_H */