diff TaskManager/include/error.h @ 366:09f33c51a204

rename include/TaskManager/* and add memory
author aaa
date Mon, 27 Jul 2009 15:51:18 +0900
parents include/TaskManager/error.h@2ddf79a7c5fb
children 31d0a5baafdf
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TaskManager/include/error.h	Mon Jul 27 15:51:18 2009 +0900
@@ -0,0 +1,30 @@
+#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