Skip to content

Commit

Permalink
lowlevel: Crash on invalid argument
Browse files Browse the repository at this point in the history
  • Loading branch information
caseif committed Jun 15, 2024
1 parent 512087c commit 7682c14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine/libs/lowlevel/include/argus/lowlevel/error_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include "argus/lowlevel/crash.hpp"

#include <stdexcept>
#include <system_error>

#define validate_arg(cond, what) _validate_arg(cond, __func__, what)
Expand All @@ -31,7 +30,7 @@

inline void _validate_arg(bool cond, const std::string &caller, const std::string &what) {
if (!cond) {
throw std::invalid_argument(caller + ": " + what);
argus::crash_ll(caller + ": " + what);
}
}

Expand Down

0 comments on commit 7682c14

Please sign in to comment.