diff options
author | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-05-13 23:38:40 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-05-13 23:38:40 +0000 |
commit | c6a412397bc98f120d5e79d4a64e3972854b5af3 (patch) | |
tree | f36e9c70faf270aa9f4516110345e01778088e87 /include/gmock/internal | |
parent | 18490653e80d484b4650d8799184fd1e021efc7b (diff) | |
download | googletest-c6a412397bc98f120d5e79d4a64e3972854b5af3.tar.gz googletest-c6a412397bc98f120d5e79d4a64e3972854b5af3.tar.bz2 googletest-c6a412397bc98f120d5e79d4a64e3972854b5af3.zip |
Adds more tests for using SetArgumentPointee with protobufs; works around a compiler bug on Symbian that gmock-printers.h triggers; reduces template code bloat in gmock-matchers.h; avoids RTTI when it's disabled.
Diffstat (limited to 'include/gmock/internal')
-rw-r--r-- | include/gmock/internal/gmock-port.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gmock/internal/gmock-port.h b/include/gmock/internal/gmock-port.h index d242c8e4..75be9edd 100644 --- a/include/gmock/internal/gmock-port.h +++ b/include/gmock/internal/gmock-port.h @@ -162,7 +162,9 @@ inline To down_cast(From* f) { // so we only accept pointers implicit_cast<From*, To>(0); } +#if GTEST_HAS_RTTI assert(f == NULL || dynamic_cast<To>(f) != NULL); // RTTI: debug mode only! +#endif return static_cast<To>(f); } |