Use constinit in logs.cpp

Not sure if it will compile yet.
This commit is contained in:
Ivan 2024-11-04 17:34:56 +03:00 committed by GitHub
parent bcf581dc82
commit de0a16ab65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -397,8 +397,8 @@ void logs::message::broadcast(const char* fmt, const fmt_type_info* sup, ...) co
g_tls_log_control(fmt, 0);
// Get text, extract va_args
/*constinit thread_local*/ std::string text;
/*constinit thread_local*/ std::basic_string<u64> args;
constinit thread_local std::string text;
constinit thread_local std::vector<u64> args;
static constexpr fmt_type_info empty_sup{};