MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / trampoline

Function trampoline

extlibs/sol3/include/sol/sol.hpp:7471–7473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7469
7470 template <typename Fx, typename... Args>
7471 int trampoline(lua_State* L, Fx&& f, Args&&... args) noexcept {
7472 return f(L, std::forward<Args>(args)...);
7473 }
7474
7475 inline int c_trampoline(lua_State* L, lua_CFunction f) noexcept {
7476 return trampoline(L, f);

Callers 5

c_trampolineFunction · 0.85
c_call_rawFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls 5

call_exception_handlerFunction · 0.85
lua_errorFunction · 0.85
c_strMethod · 0.45
sizeMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected