From aff4635dad81bc319266d9d84b81552580cd2b65 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 19 Oct 2015 12:00:05 -0700 Subject: 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 . --- core/include/fxcrt/fx_system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/include/fxcrt/fx_system.h') 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 -- cgit v1.2.3