nngn
Loading...
Searching...
No Matches
nngn::lua::stack_push< T > Struct Template Reference

Pushes a value convertible to lua_Integer. More...

#include <push.h>

Static Public Member Functions

static int push (lua_State *L, lua_Integer i)
 
static int push (lua_State *L, lua_Number n)
 
static int push (lua_State *L, T t)
 
static int push (lua_State *L, T f)
 
static int push (lua_State *L, const T &)
 
static int push (lua_State *L, const T &t)
 
static int push (lua_State *L, T t)
 

Detailed Description

template<user_type T>
struct nngn::lua::stack_push< T >

Pushes a value convertible to lua_Integer.

Pushes a user type as a full user data value.

Pushes one of the libraries native stack types (e.g.

Pushes the call operator of a stateless lambda.

Convenience specialization for the lua_CFunction overload.

Pushes an enum value if its underlying integral type can be pushed.

Pushes a value convertible to lua_Number.

Explicit casting is required for types whose values cannot be fully represented by a lua_Integer.

See also
nngn::lua::integer

Same rules as the lua_Integer specialization.

See also
nngn::lua::number

Pushes callables which can be converted to a Lua function.

table).

A copy of the value is pushed.

See also
NNGN_LUA_DECLARE_USER_TYPE A type must be explicitly declared as a user type for this overload to be used.

Member Function Documentation

◆ push() [1/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
const T &  )
inlinestatic
Here is the call graph for this function:

◆ push() [2/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
const T & t )
inlinestatic

◆ push() [3/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
lua_Integer i )
inlinestatic

◆ push() [4/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
lua_Number n )
inlinestatic

◆ push() [5/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
T f )
inlinestatic
Here is the call graph for this function:

◆ push() [6/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
T t )
inlinestatic
Here is the call graph for this function:

◆ push() [7/7]

template<user_type T>
static int nngn::lua::stack_push< T >::push ( lua_State * L,
T t )
inlinestatic
Here is the call graph for this function:

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