Skip to content

Commit

Permalink
Fix to Linux compilation error at assert_util.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Oct 11, 2021
1 parent 5e3c80c commit 0f5ad41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/assert_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ void assert_log(const bool check)
return;
}

#ifdef __cpp_lib_source_location
log::log_error(get_assert_message(location));
#else
log::log_error("Assert failed.");
#endif
}

}

0 comments on commit 0f5ad41

Please sign in to comment.