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

Function DeleteContext

engine/resource/src/block_allocator.cpp:152–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void DeleteContext(HContext context)
153 {
154 if (!context)
155 {
156 return;
157 }
158 assert(context->m_BlockDatas[0].m_AllocationCount == 0);
159 for (uint16_t i = 1; i < MAX_BLOCK_COUNT; ++i)
160 {
161 assert(context->m_Blocks[i] == 0x0);
162 }
163 free(context);
164 }
165}

Callers 6

DeletePreloaderFunction · 0.70
TESTFunction · 0.50
TearDownMethod · 0.50
TearDownMethod · 0.50
TearDownMethod · 0.50
TearDownMethod · 0.50

Calls 2

freeFunction · 0.85
assertFunction · 0.50

Tested by 5

TESTFunction · 0.40
TearDownMethod · 0.40
TearDownMethod · 0.40
TearDownMethod · 0.40
TearDownMethod · 0.40