diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:14:26 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:14:26 +0000 |
| commit | ba80da196404d521584ebbaf2054a4f7ce032cd6 (patch) | |
| tree | cbc923456df7a7bba3cc1e4416a5a14ad893c735 /sys/external/bsd/common/include/linux | |
| parent | 872aa784f8d4a00912dd9f3bb4310c58002247b0 (diff) | |
stub BUILD_BUG_ON_ZERO, from openbsd.
This is a dual purpose macro that asserts but can also be used in
expressions. Provide the expression implementation.
Author: Maya Rashish <maya@NetBSD.org>
Committer: Taylor R Campbell <riastradh@NetBSD.org>
Diffstat (limited to 'sys/external/bsd/common/include/linux')
| -rw-r--r-- | sys/external/bsd/common/include/linux/build_bug.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/external/bsd/common/include/linux/build_bug.h b/sys/external/bsd/common/include/linux/build_bug.h index 9149582caf6..7f02708f1e2 100644 --- a/sys/external/bsd/common/include/linux/build_bug.h +++ b/sys/external/bsd/common/include/linux/build_bug.h @@ -1,4 +1,4 @@ -/* $NetBSD: build_bug.h,v 1.2 2021/12/19 11:10:48 riastradh Exp $ */ +/* $NetBSD: build_bug.h,v 1.3 2021/12/19 11:14:26 riastradh Exp $ */ /*- * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -41,5 +41,6 @@ #define BUILD_BUG() do {} while (0) #define BUILD_BUG_ON_MSG(EXPR,MSG) BUILD_BUG_ON(EXPR) #define BUILD_BUG_ON_INVALID(EXPR) ((void)sizeof((long)(EXPR))) +#define BUILD_BUG_ON_ZERO(EXPR) 0 #endif /* _LINUX_BUILD_BUG_H_ */ |
