Mercurial > hg > Members > kono > Cerium
diff include/TaskManager/error.h @ 30:bd5fc2e3f8c7
*** empty log message ***
author | gongo |
---|---|
date | Tue, 12 Feb 2008 11:18:48 +0900 |
parents | 2356238ebea7 |
children | aa11038dbdc1 |
line wrap: on
line diff
--- a/include/TaskManager/error.h Mon Feb 11 17:33:38 2008 +0900 +++ b/include/TaskManager/error.h Tue Feb 12 11:18:48 2008 +0900 @@ -1,1 +1,9 @@ -extern void __debug(char *str); +//extern void __debug(char *str); +#ifdef DEBUG +# include <stdio.h> +# define __debug(...) do { \ + printf(__VA_ARGS__); \ + } while (0) +#else /* DEBUG */ +# define __debug(...) +#endif