MCPcopy Create free account
hub / github.com/ThePhD/sol2 / get_property_lua

Method get_property_lua

tests/run_time/source/basic.cpp:415–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413TEST_CASE("feature/indexing overrides", "make sure index functions can be overridden on types") {
414 struct PropertySet {
415 sol::object get_property_lua(const char* name, sol::this_state s) {
416 auto& var = props[name];
417 return sol::make_object(s, var);
418 }
419
420 void set_property_lua(const char* name, sol::stack_object object) {
421 props[name] = object.as<std::string>();

Callers

nothing calls this directly

Calls 1

make_objectFunction · 0.85

Tested by

no test coverage detected