mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
421 B
14 lines
421 B
#ifndef _LINUX_CONST_H |
|
#define _LINUX_CONST_H |
|
|
|
#include <vdso/const.h> |
|
|
|
/* |
|
* This returns a constant expression while determining if an argument is |
|
* a constant expression, most importantly without evaluating the argument. |
|
* Glory to Martin Uecker <[email protected]> |
|
*/ |
|
#define __is_constexpr(x) \ |
|
(sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) |
|
|
|
#endif /* _LINUX_CONST_H */
|
|
|