Previous 199869 Revisions Next

r31090 Monday 23rd June, 2014 at 20:02:16 UTC by Wilbert Pol
Different version of OSX segfault fix (nw)
[src/emu]clifront.c emucore.h

trunk/src/emu/clifront.c
r31089r31090
194194         if (!found)
195195         {
196196            software_list_device::display_matches(config, NULL, m_options.software_name());
197            throw emu_fatalerror(MAMERR_FATALERROR, "");
197            throw emu_fatalerror(MAMERR_FATALERROR, NULL);
198198         }
199199      }
200200     
trunk/src/emu/emucore.h
r31089r31090
290290   emu_fatalerror(const char *format, ...) ATTR_PRINTF(2,3)
291291      : code(0)
292292   {
293      va_list ap;
294      va_start(ap, format);
295      vsprintf(text, format, ap);
296      va_end(ap);
293      if (format != NULL)
294      {
295         va_list ap;
296         va_start(ap, format);
297         vsprintf(text, format, ap);
298         va_end(ap);
299      }
297300      osd_break_into_debugger(text);
298301   }
299302
300303   emu_fatalerror(const char *format, va_list ap)
301304      : code(0)
302305   {
303      vsprintf(text, format, ap);
306      if (format != NULL)
307      {
308         vsprintf(text, format, ap);
309      }
304310      osd_break_into_debugger(text);
305311   }
306312
307313   emu_fatalerror(int _exitcode, const char *format, ...) ATTR_PRINTF(3,4)
308314      : code(_exitcode)
309315   {
310      va_list ap;
311      va_start(ap, format);
312      vsprintf(text, format, ap);
313      va_end(ap);
316      if (format != NULL)
317      {
318         va_list ap;
319         va_start(ap, format);
320         vsprintf(text, format, ap);
321         va_end(ap);
322      }
314323   }
315324
316325   emu_fatalerror(int _exitcode, const char *format, va_list ap)
317326      : code(_exitcode)
318327   {
319      vsprintf(text, format, ap);
328      if (format != NULL)
329      {
330         vsprintf(text, format, ap);
331      }
320332   }
321333
322334   const char *string() const { return text; }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team