From 5c313b6f0863d916180cc3f20d40fa47e1c5047f Mon Sep 17 00:00:00 2001 From: Martin Schaffner Date: Fri, 6 Aug 2004 21:28:27 +0000 Subject: [PATCH] on Mac OS 9 and X, define Int3 to be a Debugger --- ChangeLog | 2 ++ include/error.h | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 070dddb8..efadd681 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ * include/mono.h: disable mprintf on carbon to avoid significant bloat + * include/error.h: on Mac OS 9 and X, define Int3 to be a Debugger + 2004-08-04 Chris Taylor * include/ogl_init.h: Include glu.h on OS X, it is sometimes necessary diff --git a/include/error.h b/include/error.h index 0bdb8a9b..26b75239 100644 --- a/include/error.h +++ b/include/error.h @@ -1,4 +1,4 @@ -/* $Id: error.h,v 1.10 2003-11-26 12:26:28 btb Exp $ */ +/* $Id: error.h,v 1.11 2004-08-06 21:28:27 schaffner Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -82,9 +82,14 @@ void Int3(); #ifndef NDEBUG //macros for debugging #ifdef NO_ASM +# if defined(__APPLE__) || defined(macintosh) +extern void Debugger(void); // Avoids some name clashes +# define Int3 Debugger +# else //# define Int3() Error("int 3 %s:%i\n",__FILE__,__LINE__); //# define Int3() {volatile int a=0,b=1/a;} -# define Int3() ((void)0) +# define Int3() ((void)0) +# endif // Macintosh #else // NO_ASM -- 2.39.2