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

Method FreeValue

sdk/add_on/scriptdictionary/scriptdictionary.cpp:648–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648void CScriptDictValue::FreeValue(asIScriptEngine *engine)
649{
650 // If it is a handle or a ref counted object, call release
651 if( m_typeId & asTYPEID_MASK_OBJECT )
652 {
653 // Let the engine release the object
654 engine->ReleaseScriptObject(m_valueObj, engine->GetTypeInfoById(m_typeId));
655 m_valueObj = 0;
656 m_typeId = 0;
657 }
658
659 // For primitives, there's nothing to do
660}
661
662void CScriptDictValue::EnumReferences(asIScriptEngine *inEngine)
663{

Callers 4

DeleteMethod · 0.80
DeleteAllMethod · 0.80

Calls 2

ReleaseScriptObjectMethod · 0.80
GetTypeInfoByIdMethod · 0.80

Tested by

no test coverage detected