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