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

Method mark_protect

include/covscript/core/variable.hpp:1068–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066 }
1067
1068 void mark_protect() const
1069 {
1070 if (this->mDat != nullptr)
1071 {
1072 if (this->mDat->protect_level > 1)
1073 throw cs::runtime_error("Constant tagged objects can not be copied");
1074 this->mDat->protect_level = 1;
1075 }
1076 }
1077
1078 void mark_constant() const
1079 {

Callers 3

trim_exprMethod · 0.80
operator()Method · 0.80
add_constantMethod · 0.80

Calls 1

runtime_errorClass · 0.85

Tested by

no test coverage detected