Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
revert changes to CHECK_ASSERT and CHECK_PRINT
Browse files Browse the repository at this point in the history
  • Loading branch information
arhag committed Aug 28, 2019
1 parent fdca622 commit 8b63a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/native/native/eosio/tester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ inline bool expect_print(bool check, const std::string& li, const char (&expecte
}

#define CHECK_ASSERT(...) \
___has_failed |= expect_assert(true, std::string(__FILE__)+":"+__func__+":"+(std::to_string(__LINE__)), __VA_ARGS__);
___has_failed &= expect_assert(true, std::string(__FILE__)+":"+__func__+":"+(std::to_string(__LINE__)), __VA_ARGS__);

#define REQUIRE_ASSERT(...) \
expect_assert(false, std::string(__FILE__)+":"+__func__+":"+(std::to_string(__LINE__)), __VA_ARGS__);

#define CHECK_PRINT(...) \
___has_failed |= expect_print(true, std::string(__FILE__)+":"+__func__+":"+(std::to_string(__LINE__)), __VA_ARGS__);
___has_failed &= expect_print(true, std::string(__FILE__)+":"+__func__+":"+(std::to_string(__LINE__)), __VA_ARGS__);

#define REQUIRE_PRINT(...) \
expect_print(false, std::string(__FILE__)+":"+__func__+":"+(std::to_string(__LINE__)), __VA_ARGS__);
Expand Down

0 comments on commit 8b63a0b

Please sign in to comment.