diff options
author | Peter Collingbourne <pcc@google.com> | 2018-01-24 17:15:18 -0800 |
---|---|---|
committer | Peter Collingbourne <pcc@google.com> | 2018-01-25 14:15:43 -0800 |
commit | 3498a1ac52deb83f30b8170c78bfba9dc6227198 (patch) | |
tree | 681aa189ba125f4902409f250716aee01a45ca94 /googlemock/scripts/generator/cpp/gmock_class.py | |
parent | f9155307911ecdbf344d153adc577e6bb0e0a67c (diff) | |
download | googletest-3498a1ac52deb83f30b8170c78bfba9dc6227198.tar.gz googletest-3498a1ac52deb83f30b8170c78bfba9dc6227198.tar.bz2 googletest-3498a1ac52deb83f30b8170c78bfba9dc6227198.zip |
Use _CPPUNWIND instead of _HAS_EXCEPTIONS with MSVC.
_HAS_EXCEPTIONS is specific to the MSVC STL and defining it to 0 causes
problems with libc++, so libc++ users may leave it undefined. This can
cause GTEST_HAS_EXCEPTIONS to be defined incorrectly if the user has
disabled exceptions via the compiler, which can lead to build errors.
_CPPUNWIND is a builtin macro provided by the compiler so it should
work with both STLs.
Diffstat (limited to 'googlemock/scripts/generator/cpp/gmock_class.py')
0 files changed, 0 insertions, 0 deletions