mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Handle fakevals in SetActiveFunction
This commit is contained in:
parent
36a592d7a9
commit
fa1749b516
1 changed files with 5 additions and 2 deletions
|
@ -5487,10 +5487,13 @@ void BfIRBuilder::SetActiveFunction(BfIRFunction func)
|
||||||
if (mActiveFunctionHasBody)
|
if (mActiveFunctionHasBody)
|
||||||
mNumFunctionsWithBodies++;
|
mNumFunctionsWithBodies++;
|
||||||
|
|
||||||
WriteCmd(BfIRCmd_SetActiveFunction, func);
|
|
||||||
mActiveFunction = func;
|
mActiveFunction = func;
|
||||||
mActiveFunctionHasBody = false;
|
mActiveFunctionHasBody = false;
|
||||||
NEW_CMD_INSERTED;
|
if (!func.IsFake())
|
||||||
|
{
|
||||||
|
WriteCmd(BfIRCmd_SetActiveFunction, func);
|
||||||
|
NEW_CMD_INSERTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BfIRFunction BfIRBuilder::GetActiveFunction()
|
BfIRFunction BfIRBuilder::GetActiveFunction()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue