Skip to content

Commit

Permalink
Fix name clash in CHECK macro (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 authored Jun 16, 2020
1 parent 25aa415 commit ebcaa42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dmlc/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ DEFINE_CHECK_FUNC(_NE, !=)
#pragma GCC diagnostic pop

#define CHECK_BINARY_OP(name, op, x, y) \
if (auto err = dmlc::LogCheck##name(x, y)) \
if (auto __dmlc__log__err = dmlc::LogCheck##name(x, y)) \
dmlc::LogMessageFatal(__FILE__, __LINE__).stream() \
<< "Check failed: " << #x " " #op " " #y << *err << ": "
<< "Check failed: " << #x " " #op " " #y << *__dmlc__log__err << ": "

// Always-on checking
#define CHECK(x) \
Expand Down

0 comments on commit ebcaa42

Please sign in to comment.