From a64b49c73b94f5a7703805d4add9369722bfb663 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 20 Apr 2009 19:27:32 +0000 Subject: SCI: Mapped BREAKPOINT macro to error() for now svn-id: r40028 --- engines/sci/tools.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'engines') diff --git a/engines/sci/tools.h b/engines/sci/tools.h index b0786111cb..16de948422 100644 --- a/engines/sci/tools.h +++ b/engines/sci/tools.h @@ -43,29 +43,7 @@ int sciprintf(const char *fmt, ...) GCC_PRINTF(1, 2); int sci_ffs(int bits); -/* The following was originally based on glib.h code, which was - * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald - */ -#if defined (__GNUC__) && __GNUC__ >= 2 -# if defined (__i386__) -# define BREAKPOINT() {__asm__ __volatile__ ("int $03"); } -# elif defined(__alpha__) -# define BREAKPOINT() {__asm__ __volatile__ ("call_pal 0x80"); } -# endif /* !__i386__ && !__alpha__ */ -#elif defined (_MSC_VER) -# if defined (_M_IX86) -# define BREAKPOINT() { __asm { int 03 } } -# elif defined(_M_ALPHA) -# define BREAKPOINT() { __asm { bpt } } -# endif /* !_M_IX86 && !_M_ALPHA */ -#elif defined (__DECC) -# if defined(__alpha__) -# define BREAKPOINT() {asm ("call_pal 0x80"); } -# endif /* !__i386__ && !__alpha__ */ -#endif -#ifndef BREAKPOINT -# define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *) NULL) = 42; } -#endif /* !BREAKPOINT() */ +# define BREAKPOINT() { error("Breakpoint in %s, line %d\n", __FILE__, __LINE__); } } // End of namespace Sci -- cgit v1.2.3