MCPcopy Create free account
hub / github.com/defold/defold / FinalInstance

Function FinalInstance

engine/gameobject/src/gameobject/gameobject.cpp:1926–1940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1924 }
1925
1926 static bool FinalInstance(Collection* collection, HInstance instance)
1927 {
1928 if (instance)
1929 {
1930 if (instance->m_Initialized)
1931 instance->m_Initialized = 0;
1932 else
1933 dmLogWarning("%s", "Instance is finalized without being initialized, this may lead to undefined behaviour.");
1934
1935 assert(collection->m_Instances[instance->m_Index] == instance);
1936 return FinalComponents(collection, instance);
1937 }
1938
1939 return true;
1940 }
1941
1942 static bool FinalCollection(Collection* collection)
1943 {

Callers 2

FinalCollectionFunction · 0.85
PostUpdateFunction · 0.85

Calls 2

FinalComponentsFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected