diff options
| author | 2015-01-28 09:20:10 +0100 | |
|---|---|---|
| committer | 2015-01-28 09:20:10 +0100 | |
| commit | 26e7a17b6326aa5a75a6276e52cf84a94c16d7a0 (patch) | |
| tree | bab4468226c59d590688e0ece892f5bfbca58736 /src/emu/emucore.c | |
| parent | 13b862c4fae88f0f819c2c4416d49249e4de45b9 (diff) | |
Cleanups and version bumpmame0158
Diffstat (limited to 'src/emu/emucore.c')
| -rw-r--r-- | src/emu/emucore.c | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/src/emu/emucore.c b/src/emu/emucore.c index 923ba0e1187..c7ad49a25b5 100644 --- a/src/emu/emucore.c +++ b/src/emu/emucore.c @@ -17,61 +17,61 @@ emu_fatalerror::emu_fatalerror(const char *format, ...) : code(0) { - if (format == NULL) - { - text[0] = '\0'; - } - else - { - va_list ap; - va_start(ap, format); - vsprintf(text, format, ap); - va_end(ap); - } - osd_break_into_debugger(text); + if (format == NULL) + { + text[0] = '\0'; + } + else + { + va_list ap; + va_start(ap, format); + vsprintf(text, format, ap); + va_end(ap); + } + osd_break_into_debugger(text); } emu_fatalerror::emu_fatalerror(const char *format, va_list ap) : code(0) { - if (format == NULL) - { - text[0] = '\0'; - } - else - { - vsprintf(text, format, ap); - } - osd_break_into_debugger(text); + if (format == NULL) + { + text[0] = '\0'; + } + else + { + vsprintf(text, format, ap); + } + osd_break_into_debugger(text); } emu_fatalerror::emu_fatalerror(int _exitcode, const char *format, ...) : code(_exitcode) { - if (format == NULL) - { - text[0] = '\0'; - } - else - { - va_list ap; - va_start(ap, format); - vsprintf(text, format, ap); - va_end(ap); - } + if (format == NULL) + { + text[0] = '\0'; + } + else + { + va_list ap; + va_start(ap, format); + vsprintf(text, format, ap); + va_end(ap); + } } emu_fatalerror::emu_fatalerror(int _exitcode, const char *format, va_list ap) : code(_exitcode) { - if (format == NULL) - { - text[0] = '\0'; - } - else - { - vsprintf(text, format, ap); - } + if (format == NULL) + { + text[0] = '\0'; + } + else + { + vsprintf(text, format, ap); + } } @@ -89,18 +89,18 @@ void report_bad_device_cast(const device_t *dev, const std::type_info &src_type, void fatalerror(const char *format, ...) { - va_list ap; - va_start(ap, format); - emu_fatalerror error(format, ap); - va_end(ap); - throw error; + va_list ap; + va_start(ap, format); + emu_fatalerror error(format, ap); + va_end(ap); + throw error; } void fatalerror_exitcode(running_machine &machine, int exitcode, const char *format, ...) { - va_list ap; - va_start(ap, format); - emu_fatalerror error(exitcode, format, ap); - va_end(ap); - throw error; + va_list ap; + va_start(ap, format); + emu_fatalerror error(exitcode, format, ap); + va_end(ap); + throw error; } |
