hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/const.h
....@@ -3,4 +3,12 @@
33
44 #include <vdso/const.h>
55
6
+/*
7
+ * This returns a constant expression while determining if an argument is
8
+ * a constant expression, most importantly without evaluating the argument.
9
+ * Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
10
+ */
11
+#define __is_constexpr(x) \
12
+ (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
13
+
614 #endif /* _LINUX_CONST_H */