COMMON: Remove dependency on engines code (by using the inversion principle).
svn-id: r46130
This commit is contained in:
parent
5e0f79a2ed
commit
1a313a7eca
8 changed files with 289 additions and 142 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue