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

Method mark_trivial

include/covscript/core/variable.hpp:1058–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056 }
1057
1058 void mark_trivial() const
1059 {
1060 if (this->mDat != nullptr)
1061 {
1062 if (this->mDat->protect_level > 0)
1063 throw cs::runtime_error("Constant tagged objects can not be copied");
1064 this->mDat->protect_level = 0;
1065 }
1066 }
1067
1068 void mark_protect() const
1069 {

Callers 4

copy_no_returnFunction · 0.80
copyFunction · 0.80
lvalueFunction · 0.80
detach_argsMethod · 0.80

Calls 1

runtime_errorClass · 0.85

Tested by

no test coverage detected