提交 aca65015 编写于 作者: 叶剑武

Merge branch 'macro' into 'master'

Add namespace to macro

See merge request !896
......@@ -71,12 +71,13 @@ class LogMessage : public std::ostringstream {
// which are not safe for MACE_ASSERT.
#define MACE_CHECK(condition, ...) \
if (!(condition)) \
LOG(FATAL) << "Check failed: " #condition " " << MakeString(__VA_ARGS__)
LOG(FATAL) << "Check failed: " #condition " " << mace::MakeString(__VA_ARGS__)
#ifndef NDEBUG
#define MACE_ASSERT(condition, ...) \
if (!(condition)) \
LOG(FATAL) << "Assert failed: " #condition " " << MakeString(__VA_ARGS__)
LOG(FATAL) << "Assert failed: " #condition " " \
<< mace::MakeString(__VA_ARGS__)
#else
#define MACE_ASSERT(condition, ...) ((void)0)
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册