Skip to content

Commit

Permalink
src: remove GTEST_DONT_DEFINE_ASSERT_EQ in util.h
Browse files Browse the repository at this point in the history
As indicated by the FIXME comment, this macro guard is no longer needed.

PR-URL: #12638
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
danbev authored and addaleax committed Apr 27, 2017
1 parent e927809 commit 5bb06e8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/util.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -124,14 +124,6 @@ template <typename T> using remove_reference = std::remove_reference<T>;
} \ } \
} while (0) } while (0)


// FIXME(bnoordhuis) cctests don't link in node::Abort() and node::Assert().
#ifdef GTEST_DONT_DEFINE_ASSERT_EQ
#undef ABORT
#undef CHECK
#define ABORT ABORT_NO_BACKTRACE
#define CHECK assert
#endif

#ifdef NDEBUG #ifdef NDEBUG
#define ASSERT(expr) #define ASSERT(expr)
#else #else
Expand Down

0 comments on commit 5bb06e8

Please sign in to comment.