Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: xfa/include/fxgraphics/fx_graphics.h

Issue 1740223002: Replace or remove _FX control-flow defines (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix silly stuff. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | xfa/src/fxfa/src/app/xfa_ffwidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/include/fxgraphics/fx_graphics.h
diff --git a/xfa/include/fxgraphics/fx_graphics.h b/xfa/include/fxgraphics/fx_graphics.h
index a770c4805147bc05df642e340f693d7f616beee7..51acdcea489595d961739d1fbebca5b3ccd6dd78 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;
« no previous file with comments | « no previous file | xfa/src/fxfa/src/app/xfa_ffwidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698