MCPcopy Create free account
hub / github.com/WheretIB/nullc / CheckForImmutable

Function CheckForImmutable

NULLC/Callbacks.cpp:599–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599void CheckForImmutable(TypeInfo* type, const char* pos)
600{
601 if(type->refLevel == 0)
602 ThrowError(pos, "ERROR: cannot change immutable value of type %s", type->GetFullTypeName());
603}
604
605void CheckCollisionWithFunction(const char* pos, InplaceStr varName, unsigned hash, unsigned scope)
606{

Callers 5

AddSetVariableNodeFunction · 0.85
AddMemberAccessNodeFunction · 0.85
AddUnaryModifyOpNodeFunction · 0.85
AddModifyVariableNodeFunction · 0.85
AddMemberFunctionCallFunction · 0.85

Calls 2

ThrowErrorFunction · 0.85
GetFullTypeNameMethod · 0.80

Tested by

no test coverage detected