diff options
author | Derek Mauro <dmauro@google.com> | 2022-04-21 20:22:38 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-04-21 20:23:32 (GMT) |
commit | b85864c64758dec007208e56af933fc3f52044ee (patch) | |
tree | 082332154a914ffe29776d83797b2820f0170870 /googletest/include | |
parent | 8ccdb9d56d07b9169ecd17f1164f251a637c250e (diff) | |
download | googletest-b85864c64758dec007208e56af933fc3f52044ee.zip googletest-b85864c64758dec007208e56af933fc3f52044ee.tar.gz googletest-b85864c64758dec007208e56af933fc3f52044ee.tar.bz2 |
Eliminate the legacy GTEST_COMPILE_ASSERT_ macro
PiperOrigin-RevId: 443462203
Change-Id: I0c43f981663a7531ff5da4d4be01fb3d6762273d
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 574af24..922de92 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -878,17 +878,6 @@ namespace internal { // Secret object, which is what we want. class Secret; -// The GTEST_COMPILE_ASSERT_ is a legacy macro used to verify that a compile -// time expression is true (in new code, use static_assert instead). For -// example, you could use it to verify the size of a static array: -// -// GTEST_COMPILE_ASSERT_(GTEST_ARRAY_SIZE_(names) == NUM_NAMES, -// names_incorrect_size); -// -// The second argument to the macro must be a valid C++ identifier. If the -// expression is false, compiler will issue an error containing this identifier. -#define GTEST_COMPILE_ASSERT_(expr, msg) static_assert(expr, #msg) - // A helper for suppressing warnings on constant condition. It just // returns 'condition'. GTEST_API_ bool IsTrue(bool condition); |