When encounter an unrecoverable error, programmer can invoke the longjmp, passing as an argument the jump buffer and a nonzero integer value, rather than tracking back through the sequence of function invocations :
When encounter an unrecoverable error, programmer can invoke the longjmp, passing as an argument the jump buffer and a nonzero integer value, rather than tracking back through the sequence of function invocations :
void doProcessing() { ObjectType anObject; // declare an object value .. // go through several layers of function call doMoreProcessing();}void doMoreProcessing() { ... if (somethingWrong) longjmp (Processing_Failed, 13);}