mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-10 08:07:06 +00:00
15 lines
253 B
C++
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);
|
|
}
|