Mercurial > hg > Game > CbCTaskManager
annotate Debug.h @ 5:91a07e20e06d
commit.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Dec 2009 17:53:11 +0900 |
parents | |
children |
rev | line source |
---|---|
5 | 1 #ifndef _DEBUG_H |
2 #define _DEBUG_H | |
3 | |
4 #ifdef DEBUG | |
5 | |
6 #include <stdio.h> | |
7 | |
8 #define __DEBUG(f, args...) \ | |
9 fprintf(stderr, "in %s: "f, __FUNCTION__, ## args) | |
10 | |
11 #define __DEBUGnoF(f, args...) \ | |
12 fprintf(stderr, f, ## args) | |
13 | |
14 #else | |
15 | |
16 #define __DEBUG(f, args...) | |
17 | |
18 #endif | |
19 | |
20 #endif /* !_DEBUG_H */ |