From 0999534749f6c4edb9e4d054b95f185b829adba3 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 31 May 2009 10:02:16 +0000 Subject: 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 --- engines/sci/sfx/test-iterator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/sfx/test-iterator.cpp') 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); } -- cgit v1.2.3