MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Debug_ErrorBox

Function Debug_ErrorBox

ddebug/lnxdebug.cpp:68–77  ·  view source on GitHub ↗

Does a messagebox with a stack dump Messagebox shows topstring, then stack dump, then bottomstring Return types are the same as the Windows return values

Source from the content-addressed store, hash-verified

66// Messagebox shows topstring, then stack dump, then bottomstring
67// Return types are the same as the Windows return values
68int Debug_ErrorBox(int type, const char *topstring, const char *title, const char *bottomstring) {
69 int answer = 0;
70 char *dumptext = Debug_DumpInfo();
71
72 fprintf(stderr, "\r\n%s(%s)\r\n\n%s\r\n\n%s\r\n", title, topstring, dumptext, bottomstring);
73
74 debug_break();
75
76 return answer;
77}
78
79// displays an message box
80// Returns the same values as the Win32 MessageBox() function

Callers 4

Debug_MessageBoxFunction · 0.70
ErrorFunction · 0.50
Int3MessageBoxFunction · 0.50
AssertionFailedFunction · 0.50

Calls 2

Debug_DumpInfoFunction · 0.85
debug_breakFunction · 0.85

Tested by

no test coverage detected