1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fixed syntax errors caused by EXCEPTION() when DEBUG is defined.

Added includes to get the prototype for printf() when DEBUG is defined.
This commit is contained in:
Bruce Evans 1995-12-22 16:53:48 +00:00
parent f0a51f0175
commit f15120c618
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12975

View File

@ -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