提交 4af97c69 编写于 作者: M minqiyang

Polish code

上级 41b81293
......@@ -266,7 +266,7 @@ inline void throw_on_error(T e) {
if (UNLIKELY(::paddle::platform::is_error(__cond))) { \
::paddle::platform::throw_on_error(__cond, ##__VA_ARGS__); \
} \
} while (0) // NOLINT
} while (0)
#ifndef REPLACE_ENFORCE_GLOG
#define PADDLE_ENFORCE(COND, ...) \
......@@ -277,7 +277,7 @@ inline void throw_on_error(T e) {
throw ::paddle::platform::EnforceNotMet(std::current_exception(), \
__FILE__, __LINE__); \
} \
} while (0) // NOLINT
} while (0)
#else
#define PADDLE_ENFORCE(COND, ...) __PADDLE_UNARY_COMPARE(COND, ##__VA_ARGS__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册