Exemplo n.º 1
0
Arquivo: main.c Projeto: hossbeast/fab
static xapi xmain_jump()
{
  enter;

  fatal(xmain);

finally:
  if(XAPI_UNWINDING)
  {
#if DEBUG || DEVEL || XAPI
    xapi_infos("name", "fab");
    xapi_infof("pgid", "%ld", (long)getpgid(0));
    xapi_infof("pid", "%ld", (long)getpid());
    xapi_infof("tid", "%ld", (long)gettid());

    fatal(logger_trace_full, L_ERROR, XAPI_TRACE_COLORIZE);
#else
    fatal(logger_trace_pithy, L_ERROR, XAPI_TRACE_COLORIZE);
#endif

    xmain_exit = XAPI_ERRVAL;
    xapi_calltree_unwind();
  }
coda;
}
Exemplo n.º 2
0
static xapi alpha()
{
  enter;

  int exit;
  if((exit = invoke(beta)))
  {
    assert_exit(TEST_ERROR_ONE, exit);

#if XAPI_STACKTRACE
    // discard
    xapi_calltree_unwind();
#endif
  }

  fatal(delta);

  alpha_dead_count++;

  finally : coda;
}