mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Postpone initialization of hashmaps.
This commit is contained in:
parent
cbcf393332
commit
21ddd0a820
@ -3114,10 +3114,6 @@ static unordered_flat_set<const char*, charutil::Hasher, charutil::Comparator> G
|
||||
}
|
||||
}
|
||||
|
||||
static const auto s_keywords = GetKeywords();
|
||||
static const auto s_types = GetTypes();
|
||||
static const auto s_special = GetSpecial();
|
||||
|
||||
static bool TokenizeNumber( const char*& begin, const char* end )
|
||||
{
|
||||
const bool startNum = *begin >= '0' && *begin <= '9';
|
||||
@ -3178,6 +3174,10 @@ static bool TokenizeNumber( const char*& begin, const char* end )
|
||||
|
||||
SourceView::TokenColor SourceView::IdentifyToken( const char*& begin, const char* end )
|
||||
{
|
||||
static const auto s_keywords = GetKeywords();
|
||||
static const auto s_types = GetTypes();
|
||||
static const auto s_special = GetSpecial();
|
||||
|
||||
if( *begin == '"' )
|
||||
{
|
||||
begin++;
|
||||
|
Loading…
Reference in New Issue
Block a user