struct Blah {};
#define TRY { \
bool e = true; /* really should be false. */ \
try \
{ \
#define CATCH } \
catch (...) \
{ \
try \
{ \
#define END } \
catch(const Blah&) \
{ \
e = true; \
} \
} \
if (e) \
throw; \
}
__declspec(dllexport) int (*g)();
__declspec(dllexport)
int f()
{
TRY
return g();
CATCH
return g();
END
}
No comments:
Post a Comment