Significant progress reducing c++ feature usage in the library.

This commit is contained in:
2024-12-01 18:50:37 -05:00
parent 9e88cb8724
commit 80cb3f4eca
19 changed files with 611 additions and 486 deletions

View File

@ -579,7 +579,7 @@ TokArray lex( StrC content )
if ( left <= 0 )
{
log_failure( "gen::lex: no tokens found (only whitespace provided)" );
return { { nullptr }, 0 };
return { {}, 0 };
}
foreach( StringCached, entry, PreprocessorDefines )
@ -652,7 +652,7 @@ TokArray lex( StrC content )
continue;
case Lex_ReturnNull:
return { { nullptr }, 0 };
return { {}, 0 };
}
}
case '.':
@ -1256,7 +1256,7 @@ TokArray lex( StrC content )
if ( num(Tokens) == 0 )
{
log_failure( "Failed to lex any tokens" );
return { { nullptr }, 0 };
return { {}, 0 };
}
clear(defines);