OpenMiner  0.0.1a
Voxel game engine
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 
)
inlinestatic
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  }
type type_of(lua_State *L, int index)
Definition: sol.hpp:5358

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