github.com/fafucoder/cilium@v1.6.11/bpf/lib/config.h (about) 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _H_LIB_CONFIG_H_ 3 #define _H_LIB_CONFIG_H_ 4 5 /* Subset of kernel's include/linux/kconfig.h */ 6 7 #define __ARG_PLACEHOLDER_1 0, 8 #define __take_second_arg(__ignored, val, ...) val 9 10 #define __is_defined(x) ___is_defined(x) 11 #define ___is_defined(val) ____is_defined(__ARG_PLACEHOLDER_##val) 12 #define ____is_defined(arg1_or_junk) __take_second_arg(arg1_or_junk 1, 0) 13 14 #define is_defined(option) __is_defined(option) 15 16 #endif /* _H_LIB_CONFIG_H_ */