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

#include <sol.hpp>

Static Public Member Functions

static meta_function get (lua_State *L, int index, record &tracking)
 

Member Function Documentation

§ get()

static meta_function sol::stack::getter< meta_function >::get ( lua_State *  L,
int  index,
record tracking 
)
inlinestatic
9818  {
9819  tracking.use(1);
9820  const char* name = getter<const char*>{}.get(L, index, tracking);
9821  const auto& mfnames = meta_function_names();
9822  for (std::size_t i = 0; i < mfnames.size(); ++i)
9823  if (mfnames[i] == name)
9824  return static_cast<meta_function>(i);
9825  return meta_function::construct;
9826  }
const std::array< std::string, 32 > & meta_function_names()
Definition: sol.hpp:5316
meta_function
Definition: sol.hpp:5277

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