OpenMiner  0.0.1a
Voxel game engine
Static Public Member Functions | List of all members
sol::stack::checker< T, expected, typename > 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<typename T, type expected, typename >
template<typename Handler >
static bool sol::stack::checker< T, expected, typename >::check ( lua_State *  L,
int  index,
Handler &&  handler,
record tracking 
)
inlinestatic
8204  {
8205  tracking.use(1);
8206  const type indextype = type_of(L, index);
8207  bool success = expected == indextype;
8208  if (!success) {
8209  // expected type, actual type, message
8210  handler(L, index, expected, indextype, "");
8211  }
8212  return success;
8213  }
type
Definition: sol.hpp:5173
type type_of(lua_State *L, int index)
Definition: sol.hpp:5358

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