rustc/library/backtrace/crates/cpp_smoke_test/cpp/trampoline.cpp
2020-09-04 16:38:49 +01:00

15 lines
253 B
C++

#include <stdio.h>
namespace space {
template <typename FuncT>
void templated_trampoline(FuncT func) {
func();
}
}
typedef void (*FuncPtr)();
extern "C" void cpp_trampoline(FuncPtr func) {
space::templated_trampoline(func);
}