summaryrefslogtreecommitdiff
path: root/core/include/fxcrt
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-19 12:00:05 -0700
committerLei Zhang <thestig@chromium.org>2015-10-19 12:00:05 -0700
commitaff4635dad81bc319266d9d84b81552580cd2b65 (patch)
tree0a071983cbcd7a50db4c4865099a8f6e93192123 /core/include/fxcrt
parent6101a5f98b27888f1736ae74982ed4d409d83be0 (diff)
downloadpdfium-aff4635dad81bc319266d9d84b81552580cd2b65.tar.xz
Sanity check the values of TRUE and FALSE.
Get rid of cond ? TRUE : FALSE. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1405723003 .
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r--core/include/fxcrt/fx_system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h
index ad63d56829..53789581d7 100644
--- a/core/include/fxcrt/fx_system.h
+++ b/core/include/fxcrt/fx_system.h
@@ -92,6 +92,11 @@ typedef int FX_STRSIZE;
#define FALSE 0
#endif
+#ifdef __cplusplus
+static_assert(TRUE == true, "true_needs_to_be_true");
+static_assert(FALSE == false, "false_needs_to_be_false");
+#endif
+
#ifndef NULL
#define NULL 0
#endif