const.h 421 B

1234567891011121314
  1. #ifndef _LINUX_CONST_H
  2. #define _LINUX_CONST_H
  3. #include <vdso/const.h>
  4. /*
  5. * This returns a constant expression while determining if an argument is
  6. * a constant expression, most importantly without evaluating the argument.
  7. * Glory to Martin Uecker <Martin.Uecker@med.uni-goettingen.de>
  8. */
  9. #define __is_constexpr(x) \
  10. (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
  11. #endif /* _LINUX_CONST_H */