^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _TOOLS_PERF_LINUX_BUG_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _TOOLS_PERF_LINUX_BUG_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) /* Force a compilation error if condition is true, but also produce a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) result (of value 0 and type size_t), so the expression can be used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) e.g. in a structure initializer (or where-ever else comma expressions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) aren't permitted). */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #endif /* _TOOLS_PERF_LINUX_BUG_H */