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

Method mark_constant

include/covscript/core/variable.hpp:1078–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076 }
1077
1078 void mark_constant() const
1079 {
1080 if (this->mDat != nullptr)
1081 {
1082 if (this->mDat->protect_level > 2)
1083 throw cs::runtime_error("Constant tagged objects can not be copied");
1084 this->mDat->protect_level = 2;
1085 }
1086 }
1087
1088 void mark_single() const
1089 {

Callers 2

convertMethod · 0.80
utilize_metadataMethod · 0.80

Calls 1

runtime_errorClass · 0.85

Tested by

no test coverage detected