Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed Nov 18, 2024
1 parent 8d813f3 commit e0f1e31
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/silvergun/_debug/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ class engine_error final : public std::exception {
* \brief Create a new runtime error object. Sets the location to Engine and code to 1.
* \param d An exception description.
*/
engine_error(const std::string& d) : item(exception_item(d, "Engine", 1)) {
if constexpr (build_options.debug_mode) {
logger::log(item.description, item.location, item.code, item.time);
}
};
engine_error(const std::string& d) : item(exception_item(d, "Engine", 1)) {};

engine_error() = delete; // Delete default constructor.
virtual ~engine_error() = default; // Default destructor.
Expand Down

0 comments on commit e0f1e31

Please sign in to comment.