Stefan Dösinger stefandoesinger@gmx.at wrote:
+#define __TRY __try { do +#define __EXCEPT(func) while(0); } __except((func)(GetExceptionInformation())) { do +#define __FINALLY(func) while(0); } __finally { (func)(!AbnormalTermination()); } +#define __ENDTRY while(0); } +#define __EXCEPT_PAGE_FAULT while(0); } __except(GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION) { do +#define __EXCEPT_ALL while(0); } __except(EXCEPTION_EXECUTE_HANDLER) { do
Perhaps add another '{' after 'do' and and '}' before 'while(0)' ?