MCPcopy Create free account
hub / github.com/covscript/covscript / set_protect

Function set_protect

tests/reflection.cpp:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void set_protect(cs::var &val, int level) {
23 reinterpret_cast<reflect_any *>(&val)->proxy->protect_level = level;
24}
25
26template<typename...ArgsT>
27void modify_function(cs::var &func, ArgsT &&...args) {

Callers 2

modify_functionFunction · 0.85
reflection.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected