|
@@ -31,7 +31,6 @@
|
|
|
* When CONFIG_BOOGER is not defined, we generate a (... 1, 0) pair, and when
|
|
|
* the last step cherry picks the 2nd arg, we get a zero.
|
|
|
*/
|
|
|
-#define config_enabled(cfg) ___is_defined(cfg)
|
|
|
#define __is_defined(x) ___is_defined(x)
|
|
|
#define ___is_defined(val) ____is_defined(__ARG_PLACEHOLDER_##val)
|
|
|
#define ____is_defined(arg1_or_junk) __take_second_arg(arg1_or_junk 1, 0)
|
|
@@ -41,13 +40,13 @@
|
|
|
* otherwise. For boolean options, this is equivalent to
|
|
|
* IS_ENABLED(CONFIG_FOO).
|
|
|
*/
|
|
|
-#define IS_BUILTIN(option) config_enabled(option)
|
|
|
+#define IS_BUILTIN(option) __is_defined(option)
|
|
|
|
|
|
/*
|
|
|
* IS_MODULE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'm', 0
|
|
|
* otherwise.
|
|
|
*/
|
|
|
-#define IS_MODULE(option) config_enabled(option##_MODULE)
|
|
|
+#define IS_MODULE(option) __is_defined(option##_MODULE)
|
|
|
|
|
|
/*
|
|
|
* IS_REACHABLE(CONFIG_FOO) evaluates to 1 if the currently compiled
|