COMMON: Remove dependency on engines code (by using the inversion principle).

svn-id: r46130
This commit is contained in:
Max Horn 2009-11-24 22:11:07 +00:00
parent 5e0f79a2ed
commit 1a313a7eca
8 changed files with 289 additions and 142 deletions

View file

@ -26,6 +26,7 @@
#define COMMON_UTIL_H
#include "common/scummsys.h"
#include "common/console.h"
#include "common/str.h"
@ -293,28 +294,4 @@ void updateGameGUIOptions(const uint32 options);
} // End of namespace Common
#if defined(__GNUC__)
void error(const char *s, ...) GCC_PRINTF(1, 2) NORETURN;
#else
void NORETURN error(const char *s, ...);
#endif
#ifdef DISABLE_TEXT_CONSOLE
inline int printf(const char *s, ...) { return 0; }
inline void warning(const char *s, ...) {}
#else
/**
* Print a warning message to the text console (stderr).
* Automatically prepends the text "WARNING: " and appends
* an exclamation mark and a newline.
*/
void warning(const char *s, ...) GCC_PRINTF(1, 2);
#endif
#endif