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

Function DeallocateTimer

engine/script/src/script_timer.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 static void DeallocateTimer(HTimerWorld timer_world, uint16_t timer_index)
139 {
140 assert(timer_world != 0x0);
141
142 timer_world->m_Instances.Remove(timer_index);
143 timer_world->m_Timers.Free(timer_index, true);
144 timer_world->m_IsDirty = 1;
145 }
146
147 static void FreeTimer(HTimerWorld timer_world, Timer* timer)
148 {

Callers 1

FreeTimerFunction · 0.85

Calls 3

RemoveMethod · 0.80
assertFunction · 0.50
FreeMethod · 0.45

Tested by

no test coverage detected