1 #ifndef __LINUX_KCONFIG_H
2 #define __LINUX_KCONFIG_H
4 #include <generated/autoconf.h>
7 * Helper macros to use CONFIG_ options in C expressions. Note that
8 * these only work with boolean and tristate options.
12 * IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',
16 #define IS_ENABLED(option) \
17 (__enabled_ ## option || __enabled_ ## option ## _MODULE)
20 * IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0
21 * otherwise. For boolean options, this is equivalent to
22 * IS_ENABLED(CONFIG_FOO).
24 #define IS_BUILTIN(option) __enabled_ ## option
27 * IS_MODULE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'm', 0
30 #define IS_MODULE(option) __enabled_ ## option ## _MODULE
32 #endif /* __LINUX_KCONFIG_H */
This page took 0.031177 seconds and 5 git commands to generate.