MCPcopy Create free account
hub / github.com/anjo76/angelscript / RemoveGlobalProperty

Method RemoveGlobalProperty

sdk/angelscript/source/as_scriptengine.cpp:2780–2796  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

2778
2779// internal
2780void asCScriptEngine::RemoveGlobalProperty(asCGlobalProperty *prop)
2781{
2782 int index = globalProperties.IndexOf(prop);
2783 if( index >= 0 )
2784 {
2785 freeGlobalPropertyIds.PushLast(index);
2786 globalProperties[index] = 0;
2787
2788 asSMapNode<void*, asCGlobalProperty*> *node;
2789 varAddressMap.MoveTo(&node, prop->GetAddressOfValue());
2790 asASSERT(node);
2791 if( node )
2792 varAddressMap.Erase(node);
2793
2794 prop->Release();
2795 }
2796}
2797
2798// interface
2799asUINT asCScriptEngine::GetGlobalPropertyCount() const

Callers 2

InternalResetMethod · 0.80
RemoveGlobalVarMethod · 0.80

Calls 6

IndexOfMethod · 0.80
PushLastMethod · 0.80
MoveToMethod · 0.80
GetAddressOfValueMethod · 0.45
EraseMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected