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

Reads a value convertible to lua_Integer. More...

#include <get.h>

Static Public Member Functions

static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 
static T get (lua_State *L, int i)
 

Detailed Description

template<detail::stack_type T>
struct nngn::lua::stack_get< T >

Reads a value convertible to lua_Integer.

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

Reads an enum value if its underlying integral type can be read.

Reads 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

table).

Member Function Documentation

◆ get() [1/4]

template<detail::stack_type T>
static T nngn::lua::stack_get< T >::get ( lua_State * L,
int i )
inlinestatic

◆ get() [2/4]

template<detail::stack_type T>
static T nngn::lua::stack_get< T >::get ( lua_State * L,
int i )
inlinestatic

◆ get() [3/4]

template<detail::stack_type T>
static T nngn::lua::stack_get< T >::get ( lua_State * L,
int i )
inlinestatic

◆ get() [4/4]

template<detail::stack_type T>
static T nngn::lua::stack_get< T >::get ( lua_State * L,
int i )
inlinestatic

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