OpenMiner
0.0.1a
Voxel game engine
sol
stack
stack_detail
basic_check
Static Public Member Functions
|
List of all members
sol::stack::stack_detail::basic_check< expected, check_func > Struct Template Reference
#include <
sol.hpp
>
Static Public Member Functions
template<typename Handler >
static bool
check
(lua_State *L, int index, Handler &&handler,
record
&tracking)
Member Function Documentation
§
check()
template<type expected, int(*)(lua_State *, int) check_func>
template<typename Handler >
static bool
sol::stack::stack_detail::basic_check
< expected, check_func >::check
(
lua_State *
L
,
int
index
,
Handler &&
handler
,
record
&
tracking
)
inline
static
8181
{
8182
tracking.use(1);
8183
bool
success = check_func(L, index) == 1;
8184
if
(!success) {
8185
// expected type, actual type
8186
handler
(L, index, expected,
type_of
(L, index),
""
);
8187
}
8188
return
success;
8189
}
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