[Scummvm-devel] ATTN Porters: New "logging" API in OSystem

Max Horn max at quendi.de
Fri Nov 19 12:04:17 CET 2010


Am 19.11.2010 um 11:52 schrieb Andre Heider:

> On Thu, Nov 18, 2010 at 8:50 PM, Johannes Schickel <lordhoto at scummvm.org> wrote:
>> OSystem::fatalError:
>> OSystem::logMessage:
> 
> Hi,
> 
> nice, that sounds handy!
> 
> I had quite some reports about abnormal exits due to assert(). This is
> "fprintf(stderr, ...); _exit(1);". That text can get lost easily on a
> game console, which in return makes crash reports next to useless
> without any good guesswork. The Wii port has some special sauce to
> handle that, but maybe we should take care of all those assert()s too?

Any port is free to re#define assert, e.g. the wince does this:

#define assert(e) ((e) ? 0 : (::error("Assertion failed %s (%s, %d)", #e, __FILE__, __LINE__)))


Bye,
Max



More information about the Scummvm-devel mailing list