Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/asm provide BUILD_BUG_ON_MSG



details:   https://anonhg.NetBSD.org/src/rev/69e86986e3cd
branches:  trunk
changeset: 365724:69e86986e3cd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:19:16 2018 +0000

description:
provide BUILD_BUG_ON_MSG


Author: coypu <coypu%sdf.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/include/asm/bug.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 6d0a63119d6d -r 69e86986e3cd sys/external/bsd/drm2/include/asm/bug.h
--- a/sys/external/bsd/drm2/include/asm/bug.h   Mon Aug 27 06:19:05 2018 +0000
+++ b/sys/external/bsd/drm2/include/asm/bug.h   Mon Aug 27 06:19:16 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bug.h,v 1.3 2018/08/27 06:18:30 riastradh Exp $        */
+/*     $NetBSD: bug.h,v 1.4 2018/08/27 06:19:16 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -40,6 +40,8 @@
 
 #define        BUILD_BUG()             do {} while (0)
 #define        BUILD_BUG_ON(CONDITION) CTASSERT(!(CONDITION))
+#define        BUILD_BUG_ON_MSG(CONDITION,MSG) CTASSERT(!(CONDITION))
+
 
 /* XXX Rate limit?  */
 #define WARN(CONDITION, FMT, ...)                                      \



Home | Main Index | Thread Index | Old Index