mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
25 lines
1 KiB
C
25 lines
1 KiB
C
#ifndef _FBT_EXCEPT_H
|
|
|
|
#include "fbtLog.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "fbtSeXcpt.h"
|
|
|
|
#define FBT_TRY try {
|
|
#define FBT_CATCH } catch (fbtSeException *e) { fbtLog(fbtLog_Failure, "Exception %08X caught at line %u in file %s", e->GetSeCode(), __LINE__, __FILE__); fbtLog(fbtLog_Exception, "Exception %08X caught at line %u in file %s", e->GetSeCode(), __LINE__, __FILE__);
|
|
#define FBT_CATCH_RETURN(RETVAL) FBT_CATCH return RETVAL;}
|
|
#define FBT_CATCH_NORETURN FBT_CATCH return;}
|
|
|
|
#else
|
|
|
|
#define FBT_TRY __try{
|
|
#define FBT_CATCH } __except(EXCEPTION_EXECUTE_HANDLER) { fbtLog(fbtLog_Failure, "Exception %08X caught at line %u in file %s (%s)", GetExceptionCode(), __LINE__, __FILE__, GetCommandLine()); fbtLog(fbtLog_Exception, "Exception %08X caught at line %u in file %s (%s)", GetExceptionCode(), __LINE__, __FILE__, GetCommandLine());
|
|
#define FBT_CATCH_RETURN(RETVAL) FBT_CATCH return RETVAL;}
|
|
#define FBT_CATCH_NORETURN FBT_CATCH return;}
|
|
#define FBT_CATCH_NODEBUG_RETURN(x) } __except(EXCEPTION_EXECUTE_HANDLER) { return x;}
|
|
|
|
#endif // __cplusplus
|
|
|
|
#endif _FBT_EXCEPT_H
|