aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/include
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/include')
-rw-r--r--engines/sci/include/heapmgr.h4
-rw-r--r--engines/sci/include/kdebug.h1
-rw-r--r--engines/sci/include/resource.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/engines/sci/include/heapmgr.h b/engines/sci/include/heapmgr.h
index 5e837e7993..c6912b6f44 100644
--- a/engines/sci/include/heapmgr.h
+++ b/engines/sci/include/heapmgr.h
@@ -78,8 +78,8 @@ free_##ENTRY##_entry(ENTRY##_table_t *table, int index) \
ENTRY##_entry_t *e = table->table + index; \
\
if (index < 0 || index >= table->max_entry) { \
- fprintf(stderr, "heapmgr: Attempt to release" \
- " invalid table index %d!\n", index); \
+ error("heapmgr: Attempt to release" \
+ " invalid table index %d", index); \
BREAKPOINT(); \
} \
CLEANUP_FN(&(e->entry)); \
diff --git a/engines/sci/include/kdebug.h b/engines/sci/include/kdebug.h
index dbe890f8ff..73aed0feea 100644
--- a/engines/sci/include/kdebug.h
+++ b/engines/sci/include/kdebug.h
@@ -40,7 +40,6 @@ struct _state;
#define SCIkPARSER_NR 10
#define SCIkAVOIDPATH_NR 17
-#define SCIkERROR s, __FILE__, __LINE__, SCIkERROR_NR
#define SCIkNODES s, __FILE__, __LINE__, 1
#define SCIkGRAPHICS s, __FILE__, __LINE__, 2
#define SCIkSTRINGS s, __FILE__, __LINE__, 3
diff --git a/engines/sci/include/resource.h b/engines/sci/include/resource.h
index 278810490d..ada1e4823f 100644
--- a/engines/sci/include/resource.h
+++ b/engines/sci/include/resource.h
@@ -295,7 +295,7 @@ sci_sched_yield(void);
# endif /* !__i386__ && !__alpha__ */
#endif
#ifndef BREAKPOINT
-# define BREAKPOINT() { fprintf(stderr, "Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *) NULL) = 42; }
+# define BREAKPOINT() { error("Missed breakpoint in %s, line %d\n", __FILE__, __LINE__); *((int *) NULL) = 42; }
#endif /* !BREAKPOINT() */
#endif