other-licenses/7zstub/src/Common/ComTry.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/Common/ComTry.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +// ComTry.h
     1.5 +
     1.6 +#ifndef __COM_TRY_H
     1.7 +#define __COM_TRY_H
     1.8 +
     1.9 +#include "MyWindows.h"
    1.10 +// #include "Exception.h"
    1.11 +// #include "NewHandler.h"
    1.12 +
    1.13 +#define COM_TRY_BEGIN try {
    1.14 +#define COM_TRY_END } catch(...) { return E_OUTOFMEMORY; }
    1.15 +  
    1.16 +  // catch(const CNewException &) { return E_OUTOFMEMORY; }\
    1.17 +  // catch(const CSystemException &e) { return e.ErrorCode; }\
    1.18 +  // catch(...) { return E_FAIL; }
    1.19 +
    1.20 +#endif

mercurial