Remove Mimalloc from Bin2CPP #6
@@ -62,18 +62,24 @@ class Log
|
|||||||
#define BIN2CPP_LOG_DEBUG(fmt, ...) \
|
#define BIN2CPP_LOG_DEBUG(fmt, ...) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
if (quill::Logger* logger = Bin2CPP::Singleton<Bin2CPP::Log>::Instance().GetLogger()) \
|
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
||||||
{ \
|
{ \
|
||||||
QUILL_LOG_DEBUG(logger, fmt __VA_OPT__(, ) __VA_ARGS__); \
|
if (quill::Logger* logger = Bin2CPP::Singleton<Bin2CPP::Log>::Instance().GetLogger()) \
|
||||||
|
{ \
|
||||||
|
QUILL_LOG_DEBUG(logger, fmt __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define BIN2CPP_LOG_TRACE(fmt, ...) \
|
#define BIN2CPP_LOG_TRACE(fmt, ...) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
if (quill::Logger* logger = Bin2CPP::Singleton<Bin2CPP::Log>::Instance().GetLogger()) \
|
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
||||||
{ \
|
{ \
|
||||||
QUILL_LOG_TRACE_L3(logger, fmt __VA_OPT__(, ) __VA_ARGS__); \
|
if (quill::Logger* logger = Bin2CPP::Singleton<Bin2CPP::Log>::Instance().GetLogger()) \
|
||||||
|
{ \
|
||||||
|
QUILL_LOG_TRACE_L3(logger, fmt __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ void Log::Flush()
|
|||||||
|
|
||||||
Log::~Log()
|
Log::~Log()
|
||||||
{
|
{
|
||||||
|
Flush();
|
||||||
|
|
||||||
for (quill::Logger* logger: quill::Frontend::get_all_loggers())
|
for (quill::Logger* logger: quill::Frontend::get_all_loggers())
|
||||||
{
|
{
|
||||||
quill::Frontend::remove_logger(logger);
|
quill::Frontend::remove_logger(logger);
|
||||||
|
|||||||
@@ -29,4 +29,4 @@ tools.cmake.cmaketoolchain:generator=Ninja
|
|||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
@@ -26,5 +26,5 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
|||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
Bin2CPP/*:coverage=True
|
bin2cpp/*:coverage=True
|
||||||
|
|||||||
@@ -26,4 +26,4 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
|||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
@@ -29,5 +29,5 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
|||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:asan=True
|
bin2cpp/*:asan=True
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
@@ -21,4 +21,4 @@ tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Z
|
|||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
@@ -17,4 +17,4 @@ tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Z
|
|||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
|
|||||||
@@ -14,12 +14,12 @@ tools.cmake.cmaketoolchain:user_toolchain+={{profile_dir}}/msvc_ccache.cmake
|
|||||||
tools.build:exelinkflags=["/INCREMENTAL:NO"]
|
tools.build:exelinkflags=["/INCREMENTAL:NO"]
|
||||||
tools.build:sharedlinkflags=["/INCREMENTAL:NO"]
|
tools.build:sharedlinkflags=["/INCREMENTAL:NO"]
|
||||||
|
|
||||||
tools.build:cflags=["/Zc:preprocessor", "/Zc:__STDC__", "/D_CRT_DECLARE_NONSTDC_NAMES=1"]
|
tools.build:cflags=["/Zc:preprocessor", "/Zc:__STDC__", "/D_CRT_DECLARE_NONSTDC_NAMES=1", "/fsanitize=address"]
|
||||||
tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Zc:enumTypes", "/Zc:templateScope", "/Zc:throwingNew"]
|
tools.build:cxxflags=["/Zc:preprocessor", "/permissive-", "/Zc:__cplusplus", "/Zc:enumTypes", "/Zc:templateScope", "/Zc:throwingNew", "/fsanitize=address"]
|
||||||
|
|
||||||
[tool_requires]
|
[tool_requires]
|
||||||
!cmake/*: cmake/[>=4.2]
|
!cmake/*: cmake/[>=4.2]
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Bin2CPP/*:asan=True
|
bin2cpp/*:asan=True
|
||||||
Bin2CPP/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
|
|||||||
Reference in New Issue
Block a user