mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Clean spdlog.cpp added assert
This commit is contained in:
parent
03e9aacf11
commit
25b3f61b24
@ -32,8 +32,9 @@ void set_global_logger(std::shared_ptr<logger> global_logger) {
|
||||
}
|
||||
|
||||
logger *global_logger_raw() noexcept {
|
||||
assert(context_ref()->global_logger_raw() != nullptr);
|
||||
return context_ref()->global_logger_raw();
|
||||
auto *rv = context_ref()->global_logger_raw();
|
||||
assert(rv != nullptr);
|
||||
return rv;
|
||||
}
|
||||
|
||||
void set_formatter(std::unique_ptr<formatter> formatter) {
|
||||
|
Loading…
Reference in New Issue
Block a user