Polish code

test=develop
revert-15207-remove_op_handle_lock_and_fix_var
minqiyang 7 years ago
parent aa41ee75a1
commit a3fa3f85d7

@ -260,12 +260,12 @@ inline void throw_on_error(T e) {
#define PADDLE_JUDGE #define PADDLE_JUDGE
#define __PADDLE_UNARY_COMPARE(COND, ...) \ #define __PADDLE_UNARY_COMPARE(COND, ...) \
do { \ do { \
auto cond = COND; \ auto __cond = COND; \
if (UNLIKELY(::paddle::platform::is_error(cond))) { \ if (UNLIKELY(::paddle::platform::is_error(__cond))) { \
::paddle::platform::throw_on_error(cond, ##__VA_ARGS__); \ ::paddle::platform::throw_on_error(__cond, ##__VA_ARGS__); \
} \ } \
} while (0) } while (0)
#ifndef REPLACE_ENFORCE_GLOG #ifndef REPLACE_ENFORCE_GLOG

Loading…
Cancel
Save