Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern Allow overriding CTASSERT. This helps with ...
details: https://anonhg.NetBSD.org/src/rev/f69951915707
branches: trunk
changeset: 325269:f69951915707
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Dec 15 21:15:41 2013 +0000
description:
Allow overriding CTASSERT. This helps with building NetBSD sources with
compilers that don't support __COUNTER__ -- shifting the CTASSERTs
around to avoid __LINE__ conflicts is a hopeless struggle.
diffstat:
sys/lib/libkern/libkern.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 1f184d4ca9ce -r f69951915707 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Sun Dec 15 21:10:32 2013 +0000
+++ b/sys/lib/libkern/libkern.h Sun Dec 15 21:15:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libkern.h,v 1.110 2013/12/11 01:24:08 joerg Exp $ */
+/* $NetBSD: libkern.h,v 1.111 2013/12/15 21:15:41 pooka Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -189,9 +189,15 @@
#endif
#endif
+#ifndef CTASSERT
#define CTASSERT(x) __CTASSERT(x)
+#endif
+#ifndef CTASSERT_SIGNED
#define CTASSERT_SIGNED(x) __CTASSERT(((typeof(x))-1) < 0)
+#endif
+#ifndef CTASSERT_UNSIGNED
#define CTASSERT_UNSIGNED(x) __CTASSERT(((typeof(x))-1) >= 0)
+#endif
#ifndef DIAGNOSTIC
#define _DIAGASSERT(a) (void)0
Home |
Main Index |
Thread Index |
Old Index