MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / to_lua_object

Class to_lua_object

src/extractor/scripting_environment_lua.cpp:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82struct to_lua_object
83{
84 to_lua_object(sol::state &state) : state(state) {}
85 template <typename T> auto operator()(T &v) const { return sol::make_object(state, v); }
86 auto operator()(std::monostate) const { return sol::make_object(state, sol::lua_nil); }
87 sol::state &state;
88};
89} // namespace
90
91// Handle a lua error thrown in a protected function by printing the traceback and bubbling

Callers 1

InitContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected