nngn
Loading...
Searching...
No Matches
nngn::lua::stack_push< R(*)(Args...)> Struct Template Reference

Pushes a function pointer. More...

#include <push.h>

Static Public Member Functions

static int push (lua_State *L, R(*f)(Args...))
 

Detailed Description

template<typename R, typename ... Args>
struct nngn::lua::stack_push< R(*)(Args...)>

Pushes a function pointer.

The function will be callable from Lua and will have its arguments and return value automatically handled.

Member Function Documentation

◆ push()

template<typename R , typename ... Args>
static int nngn::lua::stack_push< R(*)(Args...)>::push ( lua_State * L,
R(* )(Args...) )
inlinestatic
Here is the call graph for this function:

The documentation for this struct was generated from the following file: