demo: try..catch

This commit is contained in:
xushiwei
2024-06-07 14:29:16 +08:00
parent 95c1886df5
commit d4249da131
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
extern "C" void throwCppException();
int main() {
try {
throwCppException();
} catch (...) {
throw;
}
return 0;
}