Sign in
rust
/
rust-lang
/
backtrace-rs
/
b65ab935fb2e0d59dba8966ffca09c9cc5a5f57c
/
.
/
crates
/
cpp_smoke_test
/
cpp
/
trampoline.cpp
blob: 61e09604c82b6234538b8814bb25881204553677 [
file
] [
log
] [
blame
]
#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
);
}