// Termination versus resumption models when an exception isn't handled. #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( uBaseCoroutine::UnhandledException ) { #else } _CatchResume( uBaseCoroutine::UnhandledException ) { #endif cout << "catch" << endl; } }