summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-port.h
diff options
context:
space:
mode:
authorDerek Mauro <dmauro@google.com>2022-04-21 20:22:38 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-04-21 20:23:32 (GMT)
commitb85864c64758dec007208e56af933fc3f52044ee (patch)
tree082332154a914ffe29776d83797b2820f0170870 /googletest/include/gtest/internal/gtest-port.h
parent8ccdb9d56d07b9169ecd17f1164f251a637c250e (diff)
downloadgoogletest-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/gtest/internal/gtest-port.h')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h11
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);