Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Code/Commando/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ void Commando_Assert_Handler(const char * message)
// If the exception handler is try to quit the game then don't show an assert.
//
if (Is_Trying_To_Exit()) {
#ifdef _WIN32
ExitProcess(0);
#else
_exit(0);
#endif
}

//
Expand Down
4 changes: 4 additions & 0 deletions Code/wwdebug/wwdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ void WWDebug_Assert_Fail(const char * expr,const char * file, int line)
// If the exception handler is try to quit the game then don't show an assert.
*/
if (Is_Trying_To_Exit()) {
#ifdef _WIN32
ExitProcess(0);
#else
_exit(0);
#endif
}

char assertbuf[4096];
Expand Down
6 changes: 6 additions & 0 deletions Code/wwlib/Except.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ typedef struct tThreadInfoType {
} ThreadInfoType;


#else

#define Is_Trying_To_Exit() false
#define Register_Thread_ID(ID, NAME)
#define Unregister_Thread_ID(ID, NAME)
#define Set_Exit_On_Exception(V)

#endif //_MSC_VER

Expand Down
Loading