demo: try..catch
This commit is contained in:
10
c/setjmp/demo/_code/try_catch.cpp
Normal file
10
c/setjmp/demo/_code/try_catch.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
extern "C" void throwCppException();
|
||||
|
||||
int main() {
|
||||
try {
|
||||
throwCppException();
|
||||
} catch (...) {
|
||||
throw;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user