MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xMemPopBase

Function xMemPopBase

src/SB/Core/x/xMemMgr.cpp:361–376  ·  view source on GitHub ↗

Load/Store swap of sMemBaseNotifyFunc and state_idx

Source from the content-addressed store, hash-verified

359
360// Load/Store swap of sMemBaseNotifyFunc and state_idx
361S32 xMemPopBase(U32 heapID, S32 depth)
362{
363 xMemHeap_tag* heap = &gxHeap[heapID];
364 if (depth < 0)
365 {
366 depth = heap->state_idx + depth;
367 }
368
369 heap->state_idx = depth;
370 if (sMemBaseNotifyFunc != NULL)
371 {
372 sMemBaseNotifyFunc();
373 }
374
375 return heap->state_idx;
376}
377
378S32 xMemPopBase(S32 depth)
379{

Callers 3

zSceneExitFunction · 0.85
_rwDolphinHeapFreeFunction · 0.85
PKR_pop_memmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected