提交 d8eb2ecb 编写于 作者: B Bin Li

Add namespace to macro

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