diff error.h @ 0:01387a2e419e

initial version
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 07 Dec 2010 15:39:45 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/error.h	Tue Dec 07 15:39:45 2010 +0900
@@ -0,0 +1,8 @@
+#ifdef _DEBUG_
+#  include <stdio.h>
+#  define __debug(...) do {			\
+	fprintf(stderr, __VA_ARGS__);		\
+    } while (0)
+#else /* !_DEBUG_ */
+#  define __debug(...)
+#endif