MCPcopy Create free account
hub / github.com/SOUI2/soui / push_functor

Function push_functor

components/ScriptModule-LUA/lua_tinker/lua_tinker.h:385–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 // push_functor
384 template<typename RVal>
385 void push_functor(lua_State *L, RVal (*func)())
386 {
387 lua_pushcclosure(L, functor<RVal>::invoke, 1);
388 }
389
390 template<typename RVal, typename T1>
391 void push_functor(lua_State *L, RVal (*func)(T1))

Callers 2

defFunction · 0.85
class_defFunction · 0.85

Calls 1

lua_pushcclosureFunction · 0.85

Tested by

no test coverage detected