Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenfbtxcpt.h
Go to the documentation of this file.
00001 #ifndef _FBT_EXCEPT_H 00002 00003 #include "fbtLog.h" 00004 00005 #ifdef __cplusplus 00006 00007 #include "fbtSeXcpt.h" 00008 00009 #define FBT_TRY try { 00010 #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__); 00011 #define FBT_CATCH_RETURN(RETVAL) FBT_CATCH return RETVAL;} 00012 #define FBT_CATCH_NORETURN FBT_CATCH return;} 00013 00014 #else 00015 00016 #define FBT_TRY __try{ 00017 #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()); 00018 #define FBT_CATCH_RETURN(RETVAL) FBT_CATCH return RETVAL;} 00019 #define FBT_CATCH_NORETURN FBT_CATCH return;} 00020 #define FBT_CATCH_NODEBUG_RETURN(x) } __except(EXCEPTION_EXECUTE_HANDLER) { return x;} 00021 00022 #endif // __cplusplus 00023 00024 #endif _FBT_EXCEPT_H Generated on Sat May 26 2012 04:25:44 for ReactOS by
1.7.6.1
|