diff options
| author | Stefan Boberg <[email protected]> | 2026-03-13 22:30:32 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-13 22:30:32 +0100 |
| commit | 162d7412405e78198ede361a8fbae8dc8b82278a (patch) | |
| tree | 85f91cbbee13ec8fe73b2ba91bfc59d95116d0ef /src/zencore/include | |
| parent | Add clang-cl build support (diff) | |
| download | zen-162d7412405e78198ede361a8fbae8dc8b82278a.tar.xz zen-162d7412405e78198ede361a8fbae8dc8b82278a.zip | |
Made CPR optional, html generated at build time (#840)
- Fix potential crash on startup caused by logging macros being invoked before the logging system is initialized (null logger dereference in `ZenServerState::Sweep()`). `LoggerRef::ShouldLog` now guards against a null logger pointer.
- Make CPR an optional dependency (`--zencpr` build option, enabled by default) so builds can proceed without it
- Make zenvfs Windows-only (platform-specific target)
- Generate the frontend zip at build time from source HTML files instead of checking in a binary blob which would accumulate with every single update
Diffstat (limited to 'src/zencore/include')
| -rw-r--r-- | src/zencore/include/zencore/logbase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/include/zencore/logbase.h b/src/zencore/include/zencore/logbase.h index ad2ab218d..046e96db3 100644 --- a/src/zencore/include/zencore/logbase.h +++ b/src/zencore/include/zencore/logbase.h @@ -101,7 +101,7 @@ struct LoggerRef inline logging::Logger* operator->() const; inline logging::Logger& operator*() const; - bool ShouldLog(logging::LogLevel Level) const { return m_Logger->ShouldLog(Level); } + bool ShouldLog(logging::LogLevel Level) const { return m_Logger && m_Logger->ShouldLog(Level); } void SetLogLevel(logging::LogLevel NewLogLevel) { m_Logger->SetLevel(NewLogLevel); } logging::LogLevel GetLogLevel() { return m_Logger->GetLevel(); } |