Mercurial > hg > Game > CbCTaskManager
view 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 |
line wrap: on
line source
#ifndef _DEBUG_H #define _DEBUG_H #ifdef DEBUG #include <stdio.h> #define __DEBUG(f, args...) \ fprintf(stderr, "in %s: "f, __FUNCTION__, ## args) #define __DEBUGnoF(f, args...) \ fprintf(stderr, f, ## args) #include <sched.h> #define YIELD \ sched_yield() #else #define __DEBUG(f, args...) #define __DEBUGnoF(f, args...) #define YIELD #endif #endif /* !_DEBUG_H */