gtest modifies argc, but argc is not modified in msvc
When I used ::testing::internal::GetArgvs() in the test program to get the command line arguments, I found that it was not consistent with my expectations. After gtest modifies Argv, argv is also modified accordingly, but __argc remains unchanged. This caused an internal error in my program when judging the number of argv.
Describe the issue
gtest modifies argc, but argc is not modified in msvc When I used ::testing::internal::GetArgvs() in the test program to get the command line arguments, I found that it was not consistent with my expectations. After gtest modifies Argv, argv is also modified accordingly, but __argc remains unchanged. This caused an internal error in my program when judging the number of argv.
Steps to reproduce the problem
On Windows, get argc and argv in test
What version of GoogleTest are you using?
Release 1.14.0
What operating system and version are you using?
Windows10
What compiler and version are you using?
mvsc
What build system are you using?
mvsc
Additional context
No response