OpenMiner  0.0.1a
Voxel game engine
Public Member Functions | List of all members
sol::stack::check_getter< lua_thread_state > Struct Template Reference

#include <sol.hpp>

Public Member Functions

template<typename Handler >
optional< lua_thread_stateget (lua_State *L, int index, Handler &&handler, record &tracking)
 

Member Function Documentation

§ get()

template<typename Handler >
optional<lua_thread_state> sol::stack::check_getter< lua_thread_state >::get ( lua_State *  L,
int  index,
Handler &&  handler,
record tracking 
)
inline
21731  {
21732  lua_thread_state lts( lua_tothread(L, index) );
21733  if (lts.lua_state() == nullptr) {
21734  handler(L, index, type::thread, type_of(L, index), "value is not a valid thread type");
21735  return nullopt;
21736  }
21737  tracking.use(1);
21738  return lts;
21739  }
constexpr nullopt_t nullopt
Definition: sol.hpp:3498
type type_of(lua_State *L, int index)
Definition: sol.hpp:5358

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