summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/debug.h')
-rw-r--r--usr/src/uts/common/sys/debug.h12
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