rem: wxDoMainLoop();
add: { mz_jmp_buf * volatile save, newbuf; save = scheme_current_thread->error_buf; scheme_current_thread->error_buf = &newbuf; if (!scheme_setjmp(newbuf)) wxDoMainLoop(); scheme_current_thread->error_buf = save; }
context: static int do_main_loop(FinishArgs *fa){  wxREGGLOB(xfa);  xfa = fa;#ifdef wx_mac  if (!fa->no_front) {    ProcessSerialNumber psn;    GetCurrentProcess(&psn);        SetFrontProcess(&psn); /* kCurrentProcess doesn't work */  }#endif  wxDoMainLoop();  return 0;}