mirror of https://github.com/gabime/spdlog.git
Simplifying the shared library compatible global set_default_logger
parent
7d2b9f3f3e
commit
372c2a6295
@ -1,20 +0,0 @@
|
|||||||
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
|
||||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
||||||
|
|
||||||
#ifndef SPDLOG_COMPILED_LIB
|
|
||||||
# error Please define SPDLOG_COMPILED_LIB to compile this file.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <spdlog/details/registry.h>
|
|
||||||
|
|
||||||
namespace spdlog {
|
|
||||||
namespace details {
|
|
||||||
|
|
||||||
registry ®istry::instance()
|
|
||||||
{
|
|
||||||
static registry s_instance;
|
|
||||||
return s_instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue