OpenMiner
0.0.1a
Voxel game engine
sol
stack
check_getter< lua_thread_state >
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_state
>
get
(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
}
sol::type::thread
sol::nullopt
constexpr nullopt_t nullopt
Definition:
sol.hpp:3498
sol::type_of
type type_of(lua_State *L, int index)
Definition:
sol.hpp:5358
sol::call_status::handler
The documentation for this struct was generated from the following file:
external/
sol.hpp
Generated by
1.8.12