Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern Define CTASSERT in terms of __CTASSERT



details:   https://anonhg.NetBSD.org/src/rev/86629f33f214
branches:  trunk
changeset: 762307:86629f33f214
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Feb 19 02:02:14 2011 +0000

description:
Define CTASSERT in terms of __CTASSERT

diffstat:

 sys/lib/libkern/libkern.h |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 2e5f0d4af0d8 -r 86629f33f214 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Sat Feb 19 02:01:46 2011 +0000
+++ b/sys/lib/libkern/libkern.h Sat Feb 19 02:02:14 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libkern.h,v 1.96 2011/01/26 01:02:46 matt Exp $        */
+/*     $NetBSD: libkern.h,v 1.97 2011/02/19 02:02:14 matt Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -192,9 +192,7 @@
 #endif
 #endif
 
-#define        CTASSERT(x)             _CTASSERT(x, __LINE__)
-#define        _CTASSERT(x, y)         __CTASSERT(x, y)
-#define        __CTASSERT(x, y)        typedef char __ctassert ## y[(x) ? 1 : -1];
+#define        CTASSERT(x)             __CTASSERT(x)
 
 #ifndef DIAGNOSTIC
 #define _DIAGASSERT(a) (void)0



Home | Main Index | Thread Index | Old Index