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

Function error_Init

misc/error.cpp:98–113  ·  view source on GitHub ↗

initializes error handler.

Source from the content-addressed store, hash-verified

96
97// initializes error handler.
98bool error_Init(bool debugger, const char *app_title) {
99 Debug_Init(debugger);
100
101 Error_initialized = true;
102 Exit_message[0] = 0;
103
104 strncpy(App_title, app_title, sizeof(App_title) - 1);
105 App_title[sizeof(App_title) - 1] = 0;
106
107 strncpy(Exit_title_str, app_title, sizeof(Exit_title_str) - 1);
108 Exit_title_str[sizeof(Exit_title_str) - 1] = 0;
109
110 atexit(error_Spew);
111
112 return true;
113}
114
115// exits the application and prints out a standard error message
116void Error(const char *fmt, ...) {

Callers 4

OnInitDialogMethod · 0.85
WinMainFunction · 0.85
InitSystemsFunction · 0.85
PreInitD3SystemsFunction · 0.85

Calls 1

Debug_InitFunction · 0.50

Tested by

no test coverage detected