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

Method FatalError

BeefRT/rt/Internal.cpp:453–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453void Internal::FatalError(bf::System::String* error, intptr stackOffset)
454{
455 Beefy::StringView errorStringView = error->ToStringView();
456 Beefy::StringSimple errorString = errorStringView;
457 if (gClientPipeErrorFunc != NULL)
458 gClientPipeErrorFunc(errorStringView, 0);
459 if ((stackOffset != -1) && (::IsDebuggerPresent()))
460 {
461 SETUP_ERROR(errorString.c_str(), (int)(2 + stackOffset));
462 BF_DEBUG_BREAK();
463 }
464
465 Internal_FatalError(errorString.c_str());
466}
467
468void Internal::MemCpy(void* dest, void* src, intptr length)
469{

Callers

nothing calls this directly

Calls 4

IsDebuggerPresentFunction · 0.85
Internal_FatalErrorFunction · 0.85
ToStringViewMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected