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

Method Free

NULLC/StdLib.cpp:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 void Free(void* ptr)
126 {
127 if(!ptr)
128 return;
129 MySmallBlock* freedBlock = static_cast<MySmallBlock*>(static_cast<void*>(ptr));
130 freedBlock->next = (MySmallBlock*)((intptr_t)freeBlocks | NULLC::OBJECT_FREED);
131 freeBlocks = freedBlock;
132 }
133 bool IsBasePointer(void* ptr)
134 {
135 MyLargeBlock *curr = activePages;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected