diff options
author | Garrett D'Amore <garrett@damore.org> | 2014-08-02 18:23:32 -0700 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2014-08-15 11:49:54 -0700 |
commit | ba3594ba9b5dd4c846c472a8d657edcb7c8109ac (patch) | |
tree | 1e072a76d8376217ff49110ecdc09171d2d8a07c /usr/src/uts/common/sys/debug.h | |
parent | d8ccf998f9c944b8cf27ed840c376f9b79ebce5c (diff) | |
download | illumos-joyent-ba3594ba9b5dd4c846c472a8d657edcb7c8109ac.tar.gz |
5066 remove support for non-ANSI compilation
5068 Remove SCCSID() macro from <macros.h>
Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/common/sys/debug.h')
-rw-r--r-- | usr/src/uts/common/sys/debug.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/src/uts/common/sys/debug.h b/usr/src/uts/common/sys/debug.h index 85b8ab5f90..27b84beb88 100644 --- a/usr/src/uts/common/sys/debug.h +++ b/usr/src/uts/common/sys/debug.h @@ -19,6 +19,8 @@ * CDDL HEADER END */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -48,7 +50,6 @@ extern "C" { * ASSERT and is evaluated on both debug and non-debug kernels. */ -#if defined(__STDC__) extern int assfail(const char *, const char *, int); #define VERIFY(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__))) #if DEBUG @@ -56,15 +57,6 @@ extern int assfail(const char *, const char *, int); #else #define ASSERT(x) ((void)0) #endif -#else /* defined(__STDC__) */ -extern int assfail(); -#define VERIFY(EX) ((void)((EX) || assfail("EX", __FILE__, __LINE__))) -#if DEBUG -#define ASSERT(EX) ((void)((EX) || assfail("EX", __FILE__, __LINE__))) -#else -#define ASSERT(x) ((void)0) -#endif -#endif /* defined(__STDC__) */ /* * Assertion variants sensitive to the compilation data model |