Mercurial > hg > Game > Cerium
changeset 30:bd5fc2e3f8c7
*** empty log message ***
author | gongo |
---|---|
date | Tue, 12 Feb 2008 11:18:48 +0900 |
parents | e949a536a68d |
children | 6a77b5e755ab |
files | TaskManager/kernel/spe/error.cc include/TaskManager/error.h |
diffstat | 2 files changed, 9 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/kernel/spe/error.cc Mon Feb 11 17:33:38 2008 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -#include <stdio.h> -#include "error.h" - -#ifdef DEBUG -void -__debug(char *s) -{ - fprintf(stderr, "%s\n", s); -} - -#else -void __debug(char *s){} -#endif /* CELL */
--- 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