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
| 66 | // Messagebox shows topstring, then stack dump, then bottomstring |
| 67 | // Return types are the same as the Windows return values |
| 68 | int 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 |
no test coverage detected