Files
kotlin-fork/kotlin-native/backend.native/tests/interop/exceptions/cCallback.cpp
T

9 lines
151 B
C++

#include <stdio.h>
extern "C" void runAndCatch(void(*f)(void)) {
try {
f();
} catch (...) {
printf("CATCH IN C++!\n");
}
}