mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Use StackHelper for very long if/else chains
This commit is contained in:
parent
22b0aba954
commit
084566cdc6
7 changed files with 68 additions and 7 deletions
|
@ -9043,7 +9043,7 @@ BfTypedValue BfModule::CreateValueFromExpression(BfExprEvaluator& exprEvaluator,
|
|||
BP_ZONE("CreateValueFromExpression:CheckStack");
|
||||
|
||||
StackHelper stackHelper;
|
||||
if (!stackHelper.CanStackExpand(64 * 1024))
|
||||
if (!stackHelper.CanStackExpand(128 * 1024))
|
||||
{
|
||||
BfTypedValue result;
|
||||
if (!stackHelper.Execute([&]()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue