From 1a01d8d68079fc5b0a57c49dee67401df4d5bc6d Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 25 Aug 2008 11:37:31 +0000 Subject: [PATCH] cfg/depend.h: New header git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1689 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/depend.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bertos/cfg/depend.h 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 -- 2.25.1