Module: wine Branch: master Commit: ba29e89870659cb039cfabfa795cd365af1cd217 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba29e89870659cb039cfabfa79... Author: Rob Shearman <rob(a)codeweavers.com> Date: Thu Mar 6 15:03:26 2008 +0000 include: Add defines for GetExceptionCode, GetExceptionInformation and AbnormalTermination to excpt.h for the MS compiler when using compiler exceptions. --- include/excpt.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/excpt.h b/include/excpt.h index 13fa584..3369f3b 100644 --- a/include/excpt.h +++ b/include/excpt.h @@ -38,5 +38,14 @@ typedef enum _EXCEPTION_DISPOSITION #define EXCEPTION_CONTINUE_EXECUTION -1 +#if defined(_MSC_VER) && defined(USE_COMPILER_EXCEPTIONS) +#define GetExceptionCode _exception_code +#define GetExceptionInformation (struct _EXCEPTION_POINTERS *)_exception_info +#define AbnormalTermination _abnormal_termination + +unsigned long __cdecl _exception_code(void); +void * __cdecl _exception_info(void); +int __cdecl _abnormal_termination(void); +#endif /* defined(_MSC_VER) && defined(USE_COMPILER_EXCEPTIONS) */ #endif /* __WINE_EXCPT_H */