summaryrefslogtreecommitdiffstats
path: root/library/backtrace/crates/cpp_smoke_test/cpp/trampoline.cpp
blob: 61e09604c82b6234538b8814bb25881204553677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}