symbol-processor/data/out.cpp
2024-07-17 03:47:32 -04:00

20 lines
473 B
C++

#include "{{ headerPath }}"
#include "{{ data }}/function.cpp"
// Thunks
template <typename T>
struct __Thunk;
template <typename Ret, typename... Args>
struct __Thunk<Ret(Args...)> {
template <__Function<Ret(Args...)> *const *func>
static Ret call(Args... args) {
return (*func)->get_thunk_target()(std::forward<Args>(args)...);
}
};
{{ main }}
// Enable All Thunks
void enable_all_thunks(const thunk_enabler_t &thunk_enabler) {
{{ enableThunks }}
}