-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 261640 b: refs/heads/master c: 2a11c8e h: refs/heads/master v: v3
- Loading branch information
Michal Marek
committed
Jul 29, 2011
1 parent
ff1e8d9
commit 97cef8c
Showing
4 changed files
with
48 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: bac6aa865b3dc98e9fbc17f11d4d513d6b0bc435 | ||
refs/heads/master: 2a11c8ea20bf850b3a2c60db8c2e7497d28aba99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef __LINUX_KCONFIG_H | ||
#define __LINUX_KCONFIG_H | ||
|
||
#include <generated/autoconf.h> | ||
|
||
/* | ||
* Helper macros to use CONFIG_ options in C expressions. Note that | ||
* these only work with boolean and tristate options. | ||
*/ | ||
|
||
/* | ||
* IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm', | ||
* 0 otherwise. | ||
* | ||
*/ | ||
#define IS_ENABLED(option) \ | ||
(__enabled_ ## option || __enabled_ ## option ## _MODULE) | ||
|
||
/* | ||
* IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0 | ||
* otherwise. For boolean options, this is equivalent to | ||
* IS_ENABLED(CONFIG_FOO). | ||
*/ | ||
#define IS_BUILTIN(option) __enabled_ ## option | ||
|
||
/* | ||
* IS_MODULE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'm', 0 | ||
* otherwise. | ||
*/ | ||
#define IS_MODULE(option) __enabled_ ## option ## _MODULE | ||
|
||
#endif /* __LINUX_KCONFIG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters