From b40dd9253d75e9646ca29c14f576e69732ef43b6 Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Mon, 16 Nov 2009 13:51:22 +0000 Subject: [PATCH] w32pthreads: Remove macro redefinition of __except (it was a nasty and entirely unnecessary hack intending to protect idiot coders from their own failure to comply to very strict SEH exception handling rules). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2204 96395faa-99c1-11dd-bbfe-3dabce05a288 --- 3rdparty/w32pthreads/include/pthread.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/3rdparty/w32pthreads/include/pthread.h b/3rdparty/w32pthreads/include/pthread.h index 92b52da529..d6c2c9da54 100644 --- a/3rdparty/w32pthreads/include/pthread.h +++ b/3rdparty/w32pthreads/include/pthread.h @@ -1325,9 +1325,14 @@ PTW32_DLLPORT DWORD PTW32_CDECL ptw32_get_exception_services_code(void); * Redefine the SEH __except keyword to ensure that applications * propagate our internal exceptions up to the library's internal handlers. */ -#define __except( E ) \ - __except( ( GetExceptionCode() == ptw32_get_exception_services_code() ) \ - ? EXCEPTION_CONTINUE_SEARCH : ( E ) ) + +// PCSX2: Holy crap, what?! No. Let's not force code conformity on stupid coders. If they can't write +// a proper exception handler that does EXCEPTION_CONTINUE_SEARCH on unhandled exceptions, they deserve +// whatever bad karma befalls them. --air + +//#define __except( E ) \ +// __except( ( GetExceptionCode() == ptw32_get_exception_services_code() ) \ +// ? EXCEPTION_CONTINUE_SEARCH : ( E ) ) #endif /* __CLEANUP_SEH */