cfg/depend.h: New header
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 25 Aug 2008 11:37:31 +0000 (11:37 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 25 Aug 2008 11:37:31 +0000 (11:37 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1689 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cfg/depend.h [new file with mode: 0644]

diff --git a/bertos/cfg/depend.h b/bertos/cfg/depend.h
new file mode 100644 (file)
index 0000000..b0e4cbd
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef CFG_DEPEND_H
+#define CFG_DEPEND_H
+
+#include <cfg/compiler.h> // STATIC_ASSERT()
+/**
+ * Compile-time enforcement of dependencies between configuration options
+ */
+#define CONFIG_DEPEND(FEATURE, DEPS)  STATIC_ASSERT(!(FEATURE) || !!(DEPS))
+
+#endif // CFG_DEPEND_H