diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-01-09 14:23:27 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-01-09 19:58:42 +0000 |
commit | 6de45df10e024813ad7c62f31394f86fbcb364a7 (patch) | |
tree | 3e5f397211a8dd745b1ec91c79e68183b349a1b3 /fitz/base_error.c | |
parent | c3f257e0317e1c7fba13f2d2f9ae50f3a4ae442d (diff) | |
download | mupdf-6de45df10e024813ad7c62f31394f86fbcb364a7.tar.xz |
Update fz_try/fz_catch to be fz_try/{fz_always}/fz_catch.
Add explanations of how to use the macros in fitz.h.
Also included are 2 different formulations, with different strengths/
weaknesses for reference. Will remove these shortly, but I want a
reference to them in git.
Workaround bug in Mac OS Lion gcc (clang works fine).
Diffstat (limited to 'fitz/base_error.c')
-rw-r--r-- | fitz/base_error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_error.c b/fitz/base_error.c index f6badff6..24e5f642 100644 --- a/fitz/base_error.c +++ b/fitz/base_error.c @@ -46,7 +46,7 @@ void fz_warn(fz_context *ctx, char *fmt, ...) static void throw(fz_error_context *ex) { if (ex->top >= 0) { - longjmp(ex->stack[ex->top--].buffer, 1); + longjmp(ex->stack[ex->top].buffer, 1); } else { fprintf(stderr, "uncaught exception: %s\n", ex->message); LOGE("uncaught exception: %s\n", ex->message); |