diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-26 11:49:46 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-26 11:49:46 -0800 |
commit | dfefa9b2c99e0588bf229e2b92d85c88e5f18a41 (patch) | |
tree | fd6d629d010001bb4f1d998a809277384a973210 /xfa/include/fxgraphics/fx_graphics.h | |
parent | 104fa7c879398c67cdaab3f7064ca9f6da07b072 (diff) | |
download | pdfium-dfefa9b2c99e0588bf229e2b92d85c88e5f18a41.tar.xz |
Replace or remove _FX control-flow defines
They buy us nothing and obfuscate the logic.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1740223002 .
Diffstat (limited to 'xfa/include/fxgraphics/fx_graphics.h')
-rw-r--r-- | xfa/include/fxgraphics/fx_graphics.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/xfa/include/fxgraphics/fx_graphics.h b/xfa/include/fxgraphics/fx_graphics.h index a770c48051..51acdcea48 100644 --- a/xfa/include/fxgraphics/fx_graphics.h +++ b/xfa/include/fxgraphics/fx_graphics.h @@ -17,36 +17,6 @@ typedef int FX_ERR; #define FX_ERR_Intermediate_Value_Invalid -300 #define FX_ERR_Method_Not_Supported -400 #define FX_ERR_Out_Of_Memory -500 -#define _FX_RETURN_IF_FAIL(arg) \ - { \ - if (!(arg)) \ - return; \ - } -#define _FX_RETURN_VALUE_IF_FAIL(arg, val) \ - { \ - if (!(arg)) \ - return val; \ - } -#define _FX_GOTO_POSITION_IF_FAIL(arg, pos) \ - { \ - if (!(arg)) \ - goto pos; \ - } -#define _FX_ERR_CHECK_RETURN_IF_FAIL(arg) \ - { \ - if ((arg) != FX_ERR_Succeeded) \ - return; \ - } -#define _FX_ERR_CHECK_RETURN_VALUE_IF_FAIL(arg, val) \ - { \ - if ((arg) != FX_ERR_Succeeded) \ - return val; \ - } -#define _FX_ERR_CHECK_GOTO_POSITION_IF_FAIL(arg, pos) \ - { \ - if ((arg) != FX_ERR_Succeeded) \ - goto pos; \ - } #define FX_SHADING_Steps 256 typedef int32_t FX_DashStyle; |