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

Method dynamic_get

examples/source/dynamic_object.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 sol::object dynamic_get(std::string key) {
28 auto it = entries.find(key);
29 if (it == entries.cend()) {
30 return sol::lua_nil;
31 }
32 return it->second;
33 }
34};
35
36

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected