annotate src/win32/7zip/7z/CPP/Common/ComTry.h @ 3:b05d00f19d80

fix some formatting
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:33:11 -0600
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 // ComTry.h
rlm@1 2
rlm@1 3 #ifndef __COM_TRY_H
rlm@1 4 #define __COM_TRY_H
rlm@1 5
rlm@1 6 #include "MyWindows.h"
rlm@1 7 // #include "Exception.h"
rlm@1 8 // #include "NewHandler.h"
rlm@1 9
rlm@1 10 #define COM_TRY_BEGIN try {
rlm@1 11 #define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; }
rlm@1 12
rlm@1 13 // catch(const CNewException &) { return E_OUTOFMEMORY; }\
rlm@1 14 // catch(const CSystemException &e) { return e.ErrorCode; }\
rlm@1 15 // catch(...) { return E_FAIL; }
rlm@1 16
rlm@1 17 #endif