Index: core/include/fxcrt/fx_system.h |
diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h |
index ad63d5682961126b6f23a14af8bf10015864eb11..35ff8ea8374083704bfa5ee86990cf8c9f8a2681 100644 |
--- a/core/include/fxcrt/fx_system.h |
+++ b/core/include/fxcrt/fx_system.h |
@@ -92,6 +92,14 @@ 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"); |
+#else |
+static_assert(TRUE == 1, "true_needs_to_be_one"); |
Tom Sepez
2015/10/15 17:08:31
If it's not C++, we don't get static_assert, do we
Lei Zhang
2015/10/19 08:56:18
I'll just drop this then.
|
+static_assert(FALSE == 0, "false_needs_to_be_zero"); |
+#endif |
+ |
#ifndef NULL |
#define NULL 0 |
#endif |