Previous 15994 Revisions Next

r15663 Tuesday 24th July, 2012 at 15:53:07 UTC by Firewave
Properly call va_end() before throwing exceptions in fatalerror functions (no whatsnew)
[src/emu]emucore.h

src/emu/emucore.h
r15662r15663
374374{
375375   va_list ap;
376376   va_start(ap, format);
377   throw emu_fatalerror(format, ap);
377   emu_fatalerror error(format, ap);
378378   va_end(ap);
379   throw error;
379380}
380381
381382inline void fatalerror_exitcode(running_machine &machine, int exitcode, const char *format, ...)
382383{
383384   va_list ap;
384385   va_start(ap, format);
385   throw emu_fatalerror(exitcode, format, ap);
386   emu_fatalerror error(exitcode, format, ap);
386387   va_end(ap);
388   throw error;
387389}
388390
389391

Previous 15994 Revisions Next


© 1998-2018 The MESS Team