diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-15 20:49:24 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-16 11:24:55 +0100 |
commit | 839a0ace4fad9865b2762c224c808228b729b276 (patch) | |
tree | f8a01f78a85fb21899c6f8b36dbda16690264a89 /include | |
parent | e31c26d7a0fad2cd935d597d1dabd38f7d8941bc (diff) | |
download | mupdf-839a0ace4fad9865b2762c224c808228b729b276.tar.xz |
Minimize number of extra braces in the try/catch macros.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/context.h | 16 |
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); |