Go to the documentation of this file. 36 #ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_ 37 #define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_ 45 #include "gtest/internal/gtest-linked_ptr.h" 46 #include "gtest/internal/gtest-port.h" 55 #if defined(_MSC_VER) && _MSC_VER < 1310 56 # error "At least Visual C++ 2003 (7.1) is required to compile Google Mock." 61 #define GMOCK_FLAG(name) FLAGS_gmock_##name 64 #define GMOCK_DECLARE_bool_(name) extern GTEST_API_ bool GMOCK_FLAG(name) 65 #define GMOCK_DECLARE_int32_(name) \ 66 extern GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name) 67 #define GMOCK_DECLARE_string_(name) \ 68 extern GTEST_API_ ::std::string GMOCK_FLAG(name) 71 #define GMOCK_DEFINE_bool_(name, default_val, doc) \ 72 GTEST_API_ bool GMOCK_FLAG(name) = (default_val) 73 #define GMOCK_DEFINE_int32_(name, default_val, doc) \ 74 GTEST_API_ ::testing::internal::Int32 GMOCK_FLAG(name) = (default_val) 75 #define GMOCK_DEFINE_string_(name, default_val, doc) \ 76 GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val) 78 #endif // GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_