Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
1a727c27
Commit
1a727c27
authored
Mar 07, 2023
by
Abseil Team
Committed by
Copybara-Service
Mar 07, 2023
Browse files
Internal Code Change
PiperOrigin-RevId: 514678702 Change-Id: I5b0089d905152ccb85022be395ed340e42586234
parent
e1ee0fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
googlemock/include/gmock/internal/gmock-internal-utils.h
googlemock/include/gmock/internal/gmock-internal-utils.h
+2
-1
No files found.
googlemock/include/gmock/internal/gmock-internal-utils.h
View file @
1a727c27
...
@@ -311,7 +311,8 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
...
@@ -311,7 +311,8 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
// crashes).
// crashes).
template
<
typename
T
>
template
<
typename
T
>
inline
T
Invalid
()
{
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__)
#if defined(__GNUC__) || defined(__clang__)
__builtin_unreachable
();
__builtin_unreachable
();
#elif defined(_MSC_VER)
#elif defined(_MSC_VER)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment