Previous 199869 Revisions Next

r31091 Monday 23rd June, 2014 at 20:35:17 UTC by Wilbert Pol
Prevent other possible bad things happening (nw)
[src/emu]emucore.h

trunk/src/emu/emucore.h
r31090r31091
290290   emu_fatalerror(const char *format, ...) ATTR_PRINTF(2,3)
291291      : code(0)
292292   {
293      if (format != NULL)
293      if (format == NULL)
294294      {
295         text[0] = '\0';
296      }
297      else
298      {
295299         va_list ap;
296300         va_start(ap, format);
297301         vsprintf(text, format, ap);
r31090r31091
303307   emu_fatalerror(const char *format, va_list ap)
304308      : code(0)
305309   {
306      if (format != NULL)
310      if (format == NULL)
307311      {
312         text[0] = '\0';
313      }
314      else
315      {
308316         vsprintf(text, format, ap);
309317      }
310318      osd_break_into_debugger(text);
r31090r31091
313321   emu_fatalerror(int _exitcode, const char *format, ...) ATTR_PRINTF(3,4)
314322      : code(_exitcode)
315323   {
316      if (format != NULL)
324      if (format == NULL)
317325      {
326         text[0] = '\0';
327      }
328      else
329      {
318330         va_list ap;
319331         va_start(ap, format);
320332         vsprintf(text, format, ap);
r31090r31091
325337   emu_fatalerror(int _exitcode, const char *format, va_list ap)
326338      : code(_exitcode)
327339   {
328      if (format != NULL)
340      if (format == NULL)
329341      {
342         text[0] = '\0';
343      }
344      else
345      {
330346         vsprintf(text, format, ap);
331347      }
332348   }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team