mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed #error
This commit is contained in:
parent
20cbac3155
commit
16e6097dad
1 changed files with 3 additions and 8 deletions
|
@ -1155,19 +1155,14 @@ void BfParser::HandlePreprocessor()
|
|||
}
|
||||
else if (pragma == "error")
|
||||
{
|
||||
if (!mQuickCompatMode)
|
||||
{
|
||||
//TODO: Remove
|
||||
//OutputDebugStrF("####################ERROR %s\n", pragmaParam.c_str());
|
||||
}
|
||||
|
||||
mPassInstance->FailAt(pragmaParam, mSourceData, startIdx);
|
||||
wantsSingleParam = false;
|
||||
mPassInstance->FailAt(pragmaParam, mSourceData, startIdx, mSrcIdx - startIdx);
|
||||
wantedParam = true;
|
||||
}
|
||||
else if (pragma == "warning")
|
||||
{
|
||||
wantsSingleParam = false;
|
||||
mPassInstance->WarnAt(BfWarning_CS1030_PragmaWarning, pragmaParam, mSourceData, startIdx);
|
||||
mPassInstance->WarnAt(BfWarning_CS1030_PragmaWarning, pragmaParam, mSourceData, startIdx, mSrcIdx - startIdx);
|
||||
wantedParam = true;
|
||||
}
|
||||
else if (pragma == "region")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue