view TaskManager/include/error.h @ 596:f1c2e11a2ef4 draft

add xdr_getpos
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 04 Nov 2009 22:52:06 +0900
parents 0251d06467de
children 1b225972ae88
line wrap: on
line source

#ifndef CERIUM_ERR
#define CERIUM_ERR

#ifdef DEBUG
#  include <stdio.h>
#  define __debug(...) do { \
	fprintf(stderr, __VA_ARGS__);		\
    } while (0)
#else /* DEBUG */
#  define __debug(...)
#endif

#ifdef DEBUG
#  include <stdio.h>
#  define __debug_ppe(...) do { \
	printf("[PPE] "); printf(__VA_ARGS__);	\
    } while (0)
#else /* DEBUG */
#  define __debug_ppe(...)
#endif

#ifdef DEBUG
#  include <stdio.h>
#  define __debug_spe(...) do { \
	printf("[SPE] "); printf(__VA_ARGS__);	\
    } while (0)
#else /* DEBUG */
#  define __debug_spe(...)
#endif
#endif