symbol-processor/data/out.cpp
2024-07-17 06:40:04 -04:00

15 lines
367 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 }}