Ejemplo n.º 1
0
    void Throw() {
	for (Janitor* jan = JumpBase::jl->janitor; jan; jan = jan->NextJanitor)
	    jan->CleanUp();
	JumpBase::jl = JumpBase::jl->ji;
	if ( ! JumpBase::jl ) Terminate();
	Tracer::last = JumpBase::jl->trace;
	longjmp(JumpBase::jl->env, 1);
    }
Ejemplo n.º 2
0
void Throw()
{
   for (Janitor* jan = JumpBase::jl->janitor; jan; jan = jan->NextJanitor)
      jan->CleanUp();
   JumpItem* jx = JumpBase::jl->ji;    // previous jumpbase;
   if ( !jx ) { Terminate(); }         // jl was initial JumpItem
   JumpBase::jl = jx;                  // drop down a level; cannot be in front
                                       // of previous line
   Tracer::last = JumpBase::jl->trace;
   longjmp(JumpBase::jl->env, 1);
}