diff options
author | Filippos Karapetis | 2009-02-20 20:39:02 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-20 20:39:02 +0000 |
commit | 2ddce51a56a73acaa2bc1170d6c6ab087e1170c4 (patch) | |
tree | a7247ed95e6e2a70c1b05e244509db4f2fb04d61 /engines/sci/include | |
parent | 1419024bd02aac9c7a3405f34d9cfd6bf38a8447 (diff) | |
download | scummvm-rg350-2ddce51a56a73acaa2bc1170d6c6ab087e1170c4.tar.gz scummvm-rg350-2ddce51a56a73acaa2bc1170d6c6ab087e1170c4.tar.bz2 scummvm-rg350-2ddce51a56a73acaa2bc1170d6c6ab087e1170c4.zip |
Changed more messages to warnings/errors
svn-id: r38621
Diffstat (limited to 'engines/sci/include')
-rw-r--r-- | engines/sci/include/heapmgr.h | 4 | ||||
-rw-r--r-- | engines/sci/include/kdebug.h | 1 | ||||
-rw-r--r-- | engines/sci/include/resource.h | 2 |
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 |