Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
edba5d80
Commit
edba5d80
authored
Oct 23, 2009
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes linker error when used with gMock on Windows
parent
6bfc4b2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gtest.cc
src/gtest.cc
+3
-3
No files found.
src/gtest.cc
View file @
edba5d80
...
...
@@ -4446,8 +4446,8 @@ bool ParseStringFlag(const char* str, const char* flag, String* value) {
// Determines whether a string pointed by *str has the prefix parameter as
// its prefix and advances it to point past the prefix if it does.
bool
SkipPrefix
(
const
char
*
prefix
,
const
char
**
str
)
{
const
in
t
prefix_len
=
strlen
(
prefix
);
static
bool
SkipPrefix
(
const
char
*
prefix
,
const
char
**
str
)
{
const
size_
t
prefix_len
=
strlen
(
prefix
);
if
(
strncmp
(
*
str
,
prefix
,
prefix_len
)
!=
0
)
return
false
;
...
...
@@ -4462,7 +4462,7 @@ bool SkipPrefix(const char* prefix, const char** str) {
// recognized, it will print its help message. Flags starting with
// GTEST_INTERNAL_PREFIX_ followed by "internal_" are considered Google Test
// internal flags and do not trigger the help message.
bool
HasGoogleTestFlagPrefix
(
const
char
*
str
)
{
static
bool
HasGoogleTestFlagPrefix
(
const
char
*
str
)
{
return
(
SkipPrefix
(
"--"
,
&
str
)
||
SkipPrefix
(
"-"
,
&
str
)
||
SkipPrefix
(
"/"
,
&
str
))
&&
...
...
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