summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index 314fadd6..8f2a6edc 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -250,12 +250,15 @@ void fz_var_imp(void *);
#define fz_always(ctx) \
} while (0); \
} \
- { do { \
+ if (ctx->error->stack[ctx->error->top].code < 3) \
+ { \
+ ctx->error->stack[ctx->error->top].code++; \
+ do { \
#define fz_catch(ctx) \
} while(0); \
} \
- if (ctx->error->stack[ctx->error->top--].code)
+ if (ctx->error->stack[ctx->error->top--].code > 1)
int fz_push_try(fz_error_context *ex);
void fz_throw(fz_context *, char *, ...) __printflike(2, 3);