Loading...
Searching...
No Matches
Go to the documentation of this file.
2#ifndef __LINUX_KCONFIG_H
3#define __LINUX_KCONFIG_H
14#ifdef CONFIG_CPU_BIG_ENDIAN
15#define __BIG_ENDIAN 4321
17#define __LITTLE_ENDIAN 1234
20#define __ARG_PLACEHOLDER_1 0,
21#define __take_second_arg(__ignored, val, ...) val
27#define __and(x, y) ___and(x, y)
28#define ___and(x, y) ____and(__ARG_PLACEHOLDER_##x, y)
29#define ____and(arg1_or_junk, y) __take_second_arg(arg1_or_junk y, 0)
31#define __or(x, y) ___or(x, y)
32#define ___or(x, y) ____or(__ARG_PLACEHOLDER_##x, y)
33#define ____or(arg1_or_junk, y) __take_second_arg(arg1_or_junk 1, y)
48#define __is_defined(x) ___is_defined(x)
49#define ___is_defined(val) ____is_defined(__ARG_PLACEHOLDER_##val)
50#define ____is_defined(arg1_or_junk) __take_second_arg(arg1_or_junk 1, 0)
57#define IS_BUILTIN(option) __is_defined(option)
64#define IS_MODULE(option) __is_defined(option##_MODULE)
72#define IS_REACHABLE(option) __or(IS_BUILTIN(option), \
73 __and(IS_MODULE(option), __is_defined(MODULE)))
80#define IS_ENABLED(option) __or(IS_BUILTIN(option), IS_MODULE(option))