| 414 | } |
| 415 | |
| 416 | void 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 |
nothing calls this directly
no test coverage detected