DWARFS_ASSERT -> DWARFS_CHECK

This commit is contained in:
Marcus Holland-Moritz 2020-12-16 14:26:02 +01:00
parent 1d39c4b50f
commit 9cd9deb45b
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ class system_error : public boost::system::system_error {
#define DWARFS_THROW(cls, ...) throw cls(__VA_ARGS__, __FILE__, __LINE__)
#define DWARFS_ASSERT(expr, message) \
#define DWARFS_CHECK(expr, message) \
do { \
if (!(expr)) { \
assertion_failed(#expr, message, __FILE__, __LINE__); \

View File

@ -132,7 +132,7 @@ class block_request {
: begin_(begin)
, end_(end)
, promise_(std::move(promise)) {
DWARFS_ASSERT(begin_ < end_, "invalid block_request");
DWARFS_CHECK(begin_ < end_, "invalid block_request");
}
block_request(block_request&&) = default;

View File

@ -346,7 +346,7 @@ scanner_<LoggerPolicy>::scan_tree(const std::string& path, progress& prog) {
while (!queue.empty()) {
auto parent = std::dynamic_pointer_cast<dir>(queue.front());
DWARFS_ASSERT(parent, "expected directory");
DWARFS_CHECK(parent, "expected directory");
queue.pop_front();
const std::string& path = parent->path();