MCPcopy Create free account
hub / github.com/beefytech/Beef / ValidateAllocation

Method ValidateAllocation

IDEHelper/Compiler/BfModule.cpp:10560–10567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10558}
10559
10560void BfModule::ValidateAllocation(BfType* type, BfAstNode* refNode)
10561{
10562 if ((type == NULL) || (refNode == NULL))
10563 return;
10564 auto typeInstance = type->ToTypeInstance();
10565 if ((typeInstance != NULL) && (typeInstance->mTypeDef->mIsOpaque))
10566 Fail(StrFormat("Unable to allocate opaque type '%s'", TypeToString(type).c_str()), refNode);
10567}
10568
10569void BfModule::EmitAppendAlign(int align, int sizeMultiple)
10570{

Callers 4

MatchMethodMethod · 0.80
VisitMethod · 0.80
CreateObjectMethod · 0.80
DoInvocationMethod · 0.80

Calls 4

FailFunction · 0.85
TypeToStringFunction · 0.85
ToTypeInstanceMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected