P99
|
◆ p99_jmp_report()Report the origin and cause of an error. Use this if a catch clause needs another layer of try/catch blocks during the cleanup. P99_TRY {
// the real application code
} P99_CATCH(int code) {
if (code) p99_jmp_report(code);
P99_TRY {
// some complicated cleanup that might throw
// errors by itself
} P99_CATCH();
}
Without the call to p99_jmp_report the origin of the error would be lost in the second :P99_CATCH. |