summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-22 16:53:48 +0000
committerbde <bde@FreeBSD.org>1995-12-22 16:53:48 +0000
commitbcb4171cfae9d748281d9daec1d64dba5e970ec6 (patch)
treec979e4dd9b3ae07a446485bc8d167228e47d9952 /sys
parent09649d7d2bb30e55627aa8c54e933c77db1d90de (diff)
downloadFreeBSD-src-bcb4171cfae9d748281d9daec1d64dba5e970ec6.zip
FreeBSD-src-bcb4171cfae9d748281d9daec1d64dba5e970ec6.tar.gz
Fixed syntax errors caused by EXCEPTION() when DEBUG is defined.
Added includes to get the prototype for printf() when DEBUG is defined.
Diffstat (limited to 'sys')
-rw-r--r--sys/gnu/i386/fpemul/exception.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/gnu/i386/fpemul/exception.h b/sys/gnu/i386/fpemul/exception.h
index 11f9d02..68280e7 100644
--- a/sys/gnu/i386/fpemul/exception.h
+++ b/sys/gnu/i386/fpemul/exception.h
@@ -54,7 +54,7 @@
* W. Metzenthen June 1994.
*
*
- * $Id: exception.h,v 1.2 1994/04/29 21:07:13 gclarkii Exp $
+ * $Id: exception.h,v 1.3 1994/06/10 07:44:12 rich Exp $
*
*
*/
@@ -91,8 +91,14 @@
#ifndef LOCORE
#ifdef DEBUG
-#define EXCEPTION(x) { printf("exception in %s at line %d\n", \
- __FILE__, __LINE__); exception(x); }
+#include <sys/param.h>
+#include <sys/systm.h>
+
+#define EXCEPTION(x) \
+ do { \
+ printf("exception in %s at line %d\n", __FILE__, __LINE__); \
+ exception(x); \
+ } while (0)
#else
#define EXCEPTION(x) exception(x)
#endif
OpenPOWER on IntegriCloud