mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Implement BUILD_BUG_ON_INVALID() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
This commit is contained in:
parent
03f8ddedf0
commit
2460cbb4a6
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@
|
|||
#define BUILD_BUG_ON(x) CTASSERT(!(x))
|
||||
#define BUILD_BUG_ON_MSG(x, msg) BUILD_BUG_ON(x)
|
||||
#define BUILD_BUG_ON_NOT_POWER_OF_2(x) BUILD_BUG_ON(!powerof2(x))
|
||||
#define BUILD_BUG_ON_INVALID(expr) while (0) { (void)(expr); }
|
||||
|
||||
#define BUG() panic("BUG at %s:%d", __FILE__, __LINE__)
|
||||
#define BUG_ON(cond) do { \
|
||||
|
|
|
|||
Loading…
Reference in a new issue