summaryrefslogtreecommitdiff
path: root/hugin.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-11 14:35:56 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-11 14:35:56 +0200
commit4a06d163403c729da246fceecabf2348ef532140 (patch)
treed37ec26e4f0ff264bd16f3ac73722ab021f72d10 /hugin.h
parent782fe184b558070bca926bdeb38c48ea16578544 (diff)
Added DISABLE_HUGIN macro.
Diffstat (limited to 'hugin.h')
-rw-r--r--hugin.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/hugin.h b/hugin.h
index 1effcd7..88199a9 100644
--- a/hugin.h
+++ b/hugin.h
@@ -28,6 +28,18 @@
#ifndef __HUGIN_HUGIN_H__
#define __HUGIN_HUGIN_H__
+#ifdef DISABLE_HUGIN
+
+#define ERR(ch, fmt...)
+#define WARN(ch, fmt...)
+#define INFO(ch, fmt...)
+#define DEBUG(ch, fmt...)
+typedef int hug_status_t;
+#define hug_init(...) 0
+#define hug_close()
+
+#else/*DISABLE_HUGIN*/
+
enum HUG_FLAG {
// Features
#ifdef WITH_HUG_THREAD
@@ -166,4 +178,6 @@ int __debug(const char *func, const int line, enum __debug_class cl,
#define INFO(ch, fmt...) __DEBUG(_info, ch, fmt)
#define DEBUG(ch, fmt...) __DEBUG(_debug, ch, fmt)
+#endif/*DISABLE_HUGIN*/
+
#endif/*__HUGIN_HUGIN_H__*/