[server] Implement exception functions

This commit is contained in:
RD42
2023-10-25 15:06:01 +08:00
parent 77acff8b2c
commit 15fb2e6559
3 changed files with 199 additions and 0 deletions
+10
View File
@@ -5,6 +5,11 @@ CConsole *pConsole = NULL;
FILE *pLogFile;
#ifdef WIN32
extern LONG WINAPI exc_handler(_EXCEPTION_POINTERS* exc_inf);
#endif
//----------------------------------------------------
void LoadLogFile()
@@ -65,6 +70,11 @@ int main (int argc, char** argv)
// Create the Console
pConsole = new CConsole();
#ifdef WIN32
// Setup the exception handler on windows
SetUnhandledExceptionFilter(exc_handler);
#endif
// TODO: main
fclose(pLogFile);