MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ~ScriptingType

Method ~ScriptingType

Source/Engine/Scripting/BinaryModule.cpp:336–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336ScriptingType::~ScriptingType()
337{
338 switch (Type)
339 {
340 case ScriptingTypes::Script:
341 if (Script.DefaultInstance)
342 Delete(Script.DefaultInstance);
343 if (Script.VTable)
344 Platform::Free((byte*)Script.VTable - GetVTablePrefix());
345 Platform::Free(Script.InterfacesOffsets);
346 Platform::Free(Script.ScriptVTable);
347 Platform::Free(Script.ScriptVTableBase);
348 break;
349 case ScriptingTypes::Structure:
350 break;
351 case ScriptingTypes::Enum:
352 break;
353 case ScriptingTypes::Interface:
354 break;
355 default: ;
356 }
357}
358
359void ScriptingType::DefaultInitRuntime()
360{

Callers 1

CacheScriptingTypeMethod · 0.80

Calls 3

DeleteFunction · 0.85
GetVTablePrefixFunction · 0.85
FreeFunction · 0.50

Tested by

no test coverage detected