mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Sanitize BF_DEPENDS_ defines
This commit is contained in:
parent
126943c5bd
commit
b9d0dc693f
1 changed files with 5 additions and 0 deletions
|
@ -935,6 +935,11 @@ MaybeBool BfParser::HandleIfDef(const StringImpl& name)
|
|||
StringT<64> def = "BF_DEPENDS_";
|
||||
def.Append(project->mName);
|
||||
MakeUpper(def);
|
||||
for (auto& c : def)
|
||||
{
|
||||
if (!isalnum((uint8)c))
|
||||
c = '_';
|
||||
}
|
||||
mPreprocessorDefines[def] = BfDefineState_FromProject;
|
||||
}
|
||||
mAddedDependsDefines = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue