summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-15 20:49:24 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-16 11:24:55 +0100
commit839a0ace4fad9865b2762c224c808228b729b276 (patch)
treef8a01f78a85fb21899c6f8b36dbda16690264a89 /include
parente31c26d7a0fad2cd935d597d1dabd38f7d8941bc (diff)
downloadmupdf-839a0ace4fad9865b2762c224c808228b729b276.tar.xz
Minimize number of extra braces in the try/catch macros.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/context.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index db5d5d75..5bf52c47 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -54,25 +54,21 @@ 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_push_try(ctx)) { \
+ if (fz_setjmp((ctx)->error->top->buffer) == 0) do { \
#define fz_always(ctx) \
} while (0); \
} \
- } \
- if (ctx->error->top->code < 3) \
- { \
- { \
+ if (ctx->error->top->code < 3) { \
ctx->error->top->code++; \
do { \
#define fz_catch(ctx) \
- } while(0); \
+ } while (0); \
} \
- } }}} \
+ } \
if ((ctx->error->top--)->code > 1)
int fz_push_try(fz_context *ctx);