From 839a0ace4fad9865b2762c224c808228b729b276 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 15 Mar 2016 20:49:24 +0100 Subject: Minimize number of extra braces in the try/catch macros. --- include/mupdf/fitz/context.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'include') 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); -- cgit v1.2.3