summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/context.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-22 17:03:31 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-23 15:58:47 +0100
commit005ab6e5a14f8b6df450a5374315f1e017e4f1ed (patch)
treea624b87285c4e04ead688f4cff6daea895e48a98 /include/mupdf/fitz/context.h
parentb2c3d9e7ca40e001d3ee18975427224b726dc4d1 (diff)
downloadmupdf-005ab6e5a14f8b6df450a5374315f1e017e4f1ed.tar.xz
Remove internal do/while braces in fz_try macros.
This has caught a couple of oddities...
Diffstat (limited to 'include/mupdf/fitz/context.h')
-rw-r--r--include/mupdf/fitz/context.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 5bf52c47..37bcd5ed 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -56,17 +56,17 @@ void fz_var_imp(void *);
#define fz_try(ctx) \
{ \
if (fz_push_try(ctx)) { \
- if (fz_setjmp((ctx)->error->top->buffer) == 0) do { \
+ if (fz_setjmp((ctx)->error->top->buffer) == 0) do \
#define fz_always(ctx) \
- } while (0); \
+ while (0); \
} \
if (ctx->error->top->code < 3) { \
ctx->error->top->code++; \
- do { \
+ do \
#define fz_catch(ctx) \
- } while (0); \
+ while (0); \
} \
} \
if ((ctx->error->top--)->code > 1)