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

Method Fail

IDEHelper/Compiler/CeMachine.cpp:861–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859//////////////////////////////////////////////////////////////////////////
860
861void CeBuilder::Fail(const StringImpl& str)
862{
863 if (!mCeFunction->mGenError.IsEmpty())
864 return;
865
866 String errStr = StrFormat("Failure during comptime generation of %s: %s", mBeFunction->mName.c_str(), str.c_str());
867 if (mCurDbgLoc != NULL)
868 {
869 String filePath;
870 mCurDbgLoc->GetDbgFile()->GetFilePath(filePath);
871 errStr += StrFormat(" at line %d:%d in %s", mCurDbgLoc->mLine + 1, mCurDbgLoc->mColumn + 1, filePath.c_str());
872 }
873
874 mCeFunction->mGenError = errStr;
875}
876
877void CeBuilder::Emit(uint8 val)
878{

Callers 3

CreateAttributeMethod · 0.45
CallMethod · 0.45
FailCurrentMethod · 0.45

Calls 12

GetDbgFileMethod · 0.80
MethodToStringMethod · 0.80
MoreInfoMethod · 0.80
FindEmitEntryMethod · 0.80
IsEmptyMethod · 0.45
c_strMethod · 0.45
GetFilePathMethod · 0.45
GetAutoCompleteMethod · 0.45
sizeMethod · 0.45
GetOwnerMethod · 0.45
ToStringMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected