mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +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 {
|
logger *global_logger_raw() noexcept {
|
||||||
assert(context_ref()->global_logger_raw() != nullptr);
|
auto *rv = context_ref()->global_logger_raw();
|
||||||
return context_ref()->global_logger_raw();
|
assert(rv != nullptr);
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_formatter(std::unique_ptr<formatter> formatter) {
|
void set_formatter(std::unique_ptr<formatter> formatter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user