Imported Upstream version 9.20
[platform/upstream/7zip.git] / CPP / Common / ComTry.h
1 // ComTry.h\r
2 \r
3 #ifndef __COM_TRY_H\r
4 #define __COM_TRY_H\r
5 \r
6 #include "MyWindows.h"\r
7 // #include "Exception.h"\r
8 // #include "NewHandler.h"\r
9 \r
10 #define COM_TRY_BEGIN try {\r
11 #define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; }\r
12   \r
13   // catch(const CNewException &) { return E_OUTOFMEMORY; }\r
14   // catch(const CSystemException &e) { return e.ErrorCode; }\r
15   // catch(...) { return E_FAIL; }\r
16 \r
17 #endif\r