diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-22 17:03:31 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-23 15:58:47 +0100 |
commit | 005ab6e5a14f8b6df450a5374315f1e017e4f1ed (patch) | |
tree | a624b87285c4e04ead688f4cff6daea895e48a98 /include/mupdf/fitz/context.h | |
parent | b2c3d9e7ca40e001d3ee18975427224b726dc4d1 (diff) | |
download | mupdf-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.h | 8 |
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) |