Internal change
PiperOrigin-RevId: 387381497
This commit is contained in:
parent
df43ce9675
commit
2d924d7a97
@ -2215,29 +2215,29 @@ using TimeInMillis = int64_t; // Represents time in milliseconds.
|
|||||||
#define GTEST_DECLARE_bool_(name) \
|
#define GTEST_DECLARE_bool_(name) \
|
||||||
namespace testing { \
|
namespace testing { \
|
||||||
GTEST_API_ extern bool GTEST_FLAG(name); \
|
GTEST_API_ extern bool GTEST_FLAG(name); \
|
||||||
}
|
} static_assert(true, "no-op to require trailing semicolon")
|
||||||
#define GTEST_DECLARE_int32_(name) \
|
#define GTEST_DECLARE_int32_(name) \
|
||||||
namespace testing { \
|
namespace testing { \
|
||||||
GTEST_API_ extern std::int32_t GTEST_FLAG(name); \
|
GTEST_API_ extern std::int32_t GTEST_FLAG(name); \
|
||||||
}
|
} static_assert(true, "no-op to require trailing semicolon")
|
||||||
#define GTEST_DECLARE_string_(name) \
|
#define GTEST_DECLARE_string_(name) \
|
||||||
namespace testing { \
|
namespace testing { \
|
||||||
GTEST_API_ extern ::std::string GTEST_FLAG(name); \
|
GTEST_API_ extern ::std::string GTEST_FLAG(name); \
|
||||||
}
|
} static_assert(true, "no-op to require trailing semicolon")
|
||||||
|
|
||||||
// Macros for defining flags.
|
// Macros for defining flags.
|
||||||
#define GTEST_DEFINE_bool_(name, default_val, doc) \
|
#define GTEST_DEFINE_bool_(name, default_val, doc) \
|
||||||
namespace testing { \
|
namespace testing { \
|
||||||
GTEST_API_ bool GTEST_FLAG(name) = (default_val); \
|
GTEST_API_ bool GTEST_FLAG(name) = (default_val); \
|
||||||
}
|
} static_assert(true, "no-op to require trailing semicolon")
|
||||||
#define GTEST_DEFINE_int32_(name, default_val, doc) \
|
#define GTEST_DEFINE_int32_(name, default_val, doc) \
|
||||||
namespace testing { \
|
namespace testing { \
|
||||||
GTEST_API_ std::int32_t GTEST_FLAG(name) = (default_val); \
|
GTEST_API_ std::int32_t GTEST_FLAG(name) = (default_val); \
|
||||||
}
|
} static_assert(true, "no-op to require trailing semicolon")
|
||||||
#define GTEST_DEFINE_string_(name, default_val, doc) \
|
#define GTEST_DEFINE_string_(name, default_val, doc) \
|
||||||
namespace testing { \
|
namespace testing { \
|
||||||
GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val); \
|
GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val); \
|
||||||
}
|
} static_assert(true, "no-op to require trailing semicolon")
|
||||||
|
|
||||||
#endif // !defined(GTEST_DECLARE_bool_)
|
#endif // !defined(GTEST_DECLARE_bool_)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user