diff options
author | Abseil Team <absl-team@google.com> | 2023-03-07 11:05:23 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-07 11:06:06 (GMT) |
commit | 1a727c27aa36c602b24bf170a301aec8686b88e8 (patch) | |
tree | 7a91c38670d6ce13d07b8fc854982b433b5d2a45 /googlemock/include/gmock | |
parent | e1ee0fa3e121e819c7a76d4d3b417de8f73ebfd7 (diff) | |
download | googletest-1a727c27aa36c602b24bf170a301aec8686b88e8.zip googletest-1a727c27aa36c602b24bf170a301aec8686b88e8.tar.gz googletest-1a727c27aa36c602b24bf170a301aec8686b88e8.tar.bz2 |
Internal Code Change
PiperOrigin-RevId: 514678702
Change-Id: I5b0089d905152ccb85022be395ed340e42586234
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-internal-utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index afbdce0..b5283ed 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -311,7 +311,8 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers(); // crashes). template <typename T> inline T Invalid() { - Assert(false, "", -1, "Internal error: attempt to return invalid value"); + Assert(/*condition=*/false, /*file=*/"", /*line=*/-1, + "Internal error: attempt to return invalid value"); #if defined(__GNUC__) || defined(__clang__) __builtin_unreachable(); #elif defined(_MSC_VER) |