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

Method Destroy

sdk/angelscript/source/as_scriptnode.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void asCScriptNode::Destroy(asCScriptEngine *engine)
60{
61 // Destroy all children
62 asCScriptNode *node = firstChild;
63 asCScriptNode *nxt;
64
65 while( node )
66 {
67 nxt = node->next;
68 node->Destroy(engine);
69 node = nxt;
70 }
71
72 // Return the memory to the memory manager
73 engine->memoryMgr.FreeScriptNode(this);
74}
75
76asCScriptNode *asCScriptNode::CreateCopy(asCScriptEngine *engine)
77{

Callers 15

~asCCompilerMethod · 0.80
~asCBuilderMethod · 0.80
RegisterFuncDefMethod · 0.80
RegisterGlobalVarMethod · 0.80
RegisterMixinClassMethod · 0.80
RegisterClassMethod · 0.80
RegisterInterfaceMethod · 0.80
CleanupEnumValuesMethod · 0.80

Calls 1

FreeScriptNodeMethod · 0.80

Tested by

no test coverage detected