From: bernie Date: Mon, 25 Aug 2008 11:37:31 +0000 (+0000) Subject: cfg/depend.h: New header X-Git-Tag: 2.0.0~245 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=1a01d8d68079fc5b0a57c49dee67401df4d5bc6d;p=bertos.git cfg/depend.h: New header git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1689 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/depend.h b/bertos/cfg/depend.h new file mode 100644 index 00000000..b0e4cbdf --- /dev/null +++ b/bertos/cfg/depend.h @@ -0,0 +1,10 @@ +#ifndef CFG_DEPEND_H +#define CFG_DEPEND_H + +#include // STATIC_ASSERT() +/** + * Compile-time enforcement of dependencies between configuration options + */ +#define CONFIG_DEPEND(FEATURE, DEPS) STATIC_ASSERT(!(FEATURE) || !!(DEPS)) + +#endif // CFG_DEPEND_H