aboutsummaryrefslogtreecommitdiffstats
path: root/wlp/C/macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'wlp/C/macro.h')
-rw-r--r--wlp/C/macro.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/wlp/C/macro.h b/wlp/C/macro.h
new file mode 100644
index 0000000..303b3c6
--- /dev/null
+++ b/wlp/C/macro.h
@@ -0,0 +1,44 @@
+/*
+ * macro.h - Copyright 2000, 2001 Cosimo Alfarano <Alfarano@CS.UniBo.It>
+ * You can use this software under the terms of the GPL. If we meet some day,
+ * and you think this stuff is worth it, you can buy me a beer in return.
+ *
+ * Thanks to md for this useful formula. Beer is beer.
+ */
+
+
+#ifndef _macro_h_
+#define _macro_h_
+
+#define LINELEN 2048
+#define TRUE 1
+#define FALSE 0
+
+/*
+#define WITHQUOTES
+#define WITHANGBRACKETS
+*/
+
+#define ERR(a,b...) fprintf(stderr, a, ## b)
+
+/* Define it for debug info on stderr (better if in .c module ...) */
+/*
+#ifndef DEBUG
+ #define DEBUG
+#endif
+*/
+
+
+#ifdef DEBUG
+ #define DBG(a...) fprintf(stderr, ## a)
+ /* for a verbose debug*/
+ #define VDBG(a,b...) fprintf(stderr, "%s(): " a, __FUNCTION__ , ## b)
+#else
+ #define DBG(a...)
+ #define VDBG(a...)
+#endif
+
+
+#endif
+
+/* EOF */