MCPcopy Create free account
hub / github.com/ZDoom/Raze / MaybePrintMessage

Method MaybePrintMessage

source/common/scripting/vm/vmframe.cpp:697–705  ·  view source on GitHub ↗

Print this only once on the first catch block.

Source from the content-addressed store, hash-verified

695
696// Print this only once on the first catch block.
697void CVMAbortException::MaybePrintMessage()
698{
699 auto m = GetMessage();
700 if (m != nullptr)
701 {
702 Printf(PRINT_NONOTIFY | PRINT_BOLD, TEXTCOLOR_RED "%s\n", m);
703 SetMessage("");
704 }
705}
706
707
708[[noreturn]] void ThrowAbortException(EVMAbortException reason, const char *moreinfo, ...)

Callers 5

MainLoopFunction · 0.80
M_InitFunction · 0.80
NativeScriptCallMethod · 0.80
ExecScriptFuncFunction · 0.80
catchFunction · 0.80

Calls 1

PrintfFunction · 0.85

Tested by

no test coverage detected