aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal
diff options
context:
space:
mode:
authorKrystian Kuzniarek <krystian.kuzniarek@gmail.com>2019-09-05 01:03:20 +0200
committerKrystian Kuzniarek <krystian.kuzniarek@gmail.com>2019-09-23 19:31:06 +0200
commite0d16aa33662857a5b3f47359f46910d4d18ab5b (patch)
tree382920415d12d4b9b2fb71778ea1832275570a90 /googletest/include/gtest/internal
parentf2fb48c3b3d79a75a88a99fba6576b25d42ec528 (diff)
downloadgoogletest-e0d16aa33662857a5b3f47359f46910d4d18ab5b.tar.gz
googletest-e0d16aa33662857a5b3f47359f46910d4d18ab5b.tar.bz2
googletest-e0d16aa33662857a5b3f47359f46910d4d18ab5b.zip
remove GTEST_ARRAY_SIZE_
This macro didn't work when an array was passed to a function by pointer, in which case the information about its size was lost. Better alternatives are: * std::extent<T>::value (compile-time) * std::array<T, N>::size() (compile-time) * std::distance(std::begin(array), std::end(array)) (run-time)
Diffstat (limited to 'googletest/include/gtest/internal')
-rw-r--r--googletest/include/gtest/internal/gtest-port.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 063fcb10..f7a62f02 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -856,9 +856,6 @@ class Secret;
// expression is false, compiler will issue an error containing this identifier.
#define GTEST_COMPILE_ASSERT_(expr, msg) static_assert(expr, #msg)
-// Evaluates to the number of elements in 'array'.
-#define GTEST_ARRAY_SIZE_(array) (sizeof(array) / sizeof(array[0]))
-
// A helper for suppressing warnings on constant condition. It just
// returns 'condition'.
GTEST_API_ bool IsTrue(bool condition);