mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Comptime method fixes
This commit is contained in:
parent
0927656400
commit
ed06ff4dce
5 changed files with 37 additions and 7 deletions
|
@ -5276,7 +5276,10 @@ void DbgExprEvaluator::LookupSplatMember(BfAstNode* targetNode, BfAstNode* looku
|
|||
if (!memberType->IsStruct())
|
||||
Fail("Failed to lookup splat member", (lookupNode != NULL) ? lookupNode : targetNode);
|
||||
|
||||
BF_ASSERT((target.mVariable != NULL) || (target.mType->GetByteCount() == 0));
|
||||
if ((target.mVariable == NULL) && (target.mType->GetByteCount() != 0))
|
||||
Fail("Splat variable not found", (lookupNode != NULL) ? lookupNode : targetNode);
|
||||
|
||||
//BF_ASSERT((target.mVariable != NULL) || (target.mType->GetByteCount() == 0));
|
||||
mResult = target;
|
||||
mResult.mType = memberType;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue