aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2009-04-20 19:27:32 +0000
committerMax Horn2009-04-20 19:27:32 +0000
commita64b49c73b94f5a7703805d4add9369722bfb663 (patch)
tree95bd5d444b3224233bcfe42068480160fb09d319 /engines/sci
parent78cf5a4ccfe4e36f33230bb196aad34eb3cf89f7 (diff)
downloadscummvm-rg350-a64b49c73b94f5a7703805d4add9369722bfb663.tar.gz
scummvm-rg350-a64b49c73b94f5a7703805d4add9369722bfb663.tar.bz2
scummvm-rg350-a64b49c73b94f5a7703805d4add9369722bfb663.zip
SCI: Mapped BREAKPOINT macro to error() for now
svn-id: r40028
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/tools.h24
1 files changed, 1 insertions, 23 deletions
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