diff options
author | Torbjörn Andersson | 2009-05-31 10:02:16 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-05-31 10:02:16 +0000 |
commit | 0999534749f6c4edb9e4d054b95f185b829adba3 (patch) | |
tree | 55744aee72afd7cc699213a88be65938e70fa0a0 /engines/sci/sfx/test-iterator.cpp | |
parent | 3b311c65d0140e8bf727910d230ffd7a7f803761 (diff) | |
download | scummvm-rg350-0999534749f6c4edb9e4d054b95f185b829adba3.tar.gz scummvm-rg350-0999534749f6c4edb9e4d054b95f185b829adba3.tar.bz2 scummvm-rg350-0999534749f6c4edb9e4d054b95f185b829adba3.zip |
The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)
svn-id: r41061
Diffstat (limited to 'engines/sci/sfx/test-iterator.cpp')
-rw-r--r-- | engines/sci/sfx/test-iterator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/sfx/test-iterator.cpp b/engines/sci/sfx/test-iterator.cpp index a2dce5d088..0d603a89fd 100644 --- a/engines/sci/sfx/test-iterator.cpp +++ b/engines/sci/sfx/test-iterator.cpp @@ -30,7 +30,7 @@ using namespace Sci; -#define ASSERT_S(x) if (!(x)) { error("Failed assertion in L%d: " #x "\n", __LINE__); return; } +#define ASSERT_S(x) if (!(x)) { error("Failed assertion in L%d: " #x, __LINE__); return; } #define ASSERT(x) ASSERT_S(x) /* Tests the song iterators */ @@ -104,7 +104,7 @@ int simple_it_next(SongIterator *_self, unsigned char *buf, int *result) { } Audio::AudioStream *simple_it_pcm_feed(SongIterator *_self) { - error("No PCM feed!\n"); + error("No PCM feed"); return NULL; } @@ -418,6 +418,6 @@ int main(int argc, char **argv) { test_iterator_sci0_loop(); test_iterator_sci0_mark_loop(); if (errors != 0) - warning("[ERROR] %d errors total.", errors); + warning("[ERROR] %d errors total", errors); return (errors != 0); } |