|
- 3.0.1 core module.
|
Go to the documentation of this file. 40 #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_ 41 #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_ 60 #if defined(_MSC_VER) && _MSC_VER < 1900 61 # error "At least Visual C++ 2015 (14.0) is required to compile Google Mock." 66 #define GMOCK_FLAG(name) FLAGS_gmock_##name 68 #if !defined(GMOCK_DECLARE_bool_) 71 # define GMOCK_DECLARE_bool_(name) extern GTEST_API_ bool GMOCK_FLAG(name) 72 # define GMOCK_DECLARE_int32_(name) \ 73 extern GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name) 74 # define GMOCK_DECLARE_string_(name) \ 75 extern GTEST_API_ ::std::string GMOCK_FLAG(name) 78 # define GMOCK_DEFINE_bool_(name, default_val, doc) \ 79 GTEST_API_ bool GMOCK_FLAG(name) = (default_val) 80 # define GMOCK_DEFINE_int32_(name, default_val, doc) \ 81 GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name) = (default_val) 82 # define GMOCK_DEFINE_string_(name, default_val, doc) \ 83 GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val) 85 #endif // !defined(GMOCK_DECLARE_bool_) 87 #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_