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

Method BFFatalError

BeefySysLib/platform/win/Platform.cpp:416–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void Beefy::BFFatalError(const StringImpl& message, const StringImpl& file, int line)
417{
418#ifndef BF_NO_BFAPP
419 if (gBFApp != NULL)
420 gBFApp->mSysDialogCnt++;
421#endif
422
423 char* failMsg = new char[message.length() + file.length() + 64];
424 sprintf(failMsg, "%s in %s:%d", message.c_str(), file.c_str(), line);
425 BfpSystem_FatalError(failMsg, "FATAL ERROR");
426
427#ifndef BF_NO_BFAPP
428 if (gBFApp != NULL)
429 gBFApp->mSysDialogCnt--;
430#endif
431}
432
433//////////////////////////////////////////////////
434

Callers

nothing calls this directly

Calls 3

BfpSystem_FatalErrorFunction · 0.70
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected