Module Name: src
Committed By: riastradh
Date: Mon Aug 27 06:19:16 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/asm: bug.h
Log Message:
provide BUILD_BUG_ON_MSG
Author: coypu <[email protected]>
Committer: Taylor R Campbell <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/include/asm/bug.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/asm/bug.h
diff -u src/sys/external/bsd/drm2/include/asm/bug.h:1.3 src/sys/external/bsd/drm2/include/asm/bug.h:1.4
--- src/sys/external/bsd/drm2/include/asm/bug.h:1.3 Mon Aug 27 06:18:30 2018
+++ src/sys/external/bsd/drm2/include/asm/bug.h Mon Aug 27 06:19:16 2018
@@ -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, ...) \