MCPcopy Create free account
hub / github.com/WheretIB/nullc / Free

Method Free

NULLC/translation/runtime.cpp:1157–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155 }
1156
1157 void Free(void* ptr)
1158 {
1159 if(!ptr)
1160 return;
1161 MySmallBlock* freedBlock = static_cast<MySmallBlock*>(static_cast<void*>(ptr));
1162 freedBlock->next = freeBlocks;
1163 freeBlocks = freedBlock;
1164 }
1165 bool IsBasePointer(void* ptr)
1166 {
1167 MyLargeBlock *curr = activePages;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected