MCPcopy Create free account
hub / github.com/anjo76/angelscript / ~CScriptDictValue

Method ~CScriptDictValue

sdk/add_on/scriptdictionary/scriptdictionary.cpp:633–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633CScriptDictValue::~CScriptDictValue()
634{
635 if (m_valueObj && m_typeId)
636 {
637 asIScriptContext *ctx = asGetActiveContext();
638 if (ctx)
639 FreeValue(ctx->GetEngine());
640 else
641 {
642 // Must not hold an object when destroyed, as then the object will never be freed
643 assert((m_typeId & asTYPEID_MASK_OBJECT) == 0);
644 }
645 }
646}
647
648void CScriptDictValue::FreeValue(asIScriptEngine *engine)
649{

Callers 1

Calls 1

GetEngineMethod · 0.45

Tested by

no test coverage detected