#include using namespace std; struct E {}; _Coroutine C { void main() { throw E(); cout << "after throw" << endl; } public: void mem() { resume(); cout << "after resume" << endl; } }; int main() { C c; try { c.mem(); cout << "after call" << endl; #ifndef RES } catch( E ) { #else } _CatchResume( E ) { #endif cout << "catch" << endl; } }