setjmp/trycatch

This commit is contained in:
xushiwei
2024-06-08 00:08:29 +08:00
parent d4249da131
commit fcf3f2abc7
8 changed files with 16 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
#include <stdexcept>
extern "C" void throwCppException() {
throw std::runtime_error("C++ exception");
}