| 338 | } |
| 339 | |
| 340 | S32 xMemPushBase(U32 heapID) |
| 341 | { |
| 342 | xMemHeap_tag* heap = &gxHeap[heapID]; |
| 343 | |
| 344 | heap->state_idx += 1; |
| 345 | xHeapState_tag* sp = &heap->state[heap->state_idx]; |
| 346 | *sp = *(sp - 1); |
| 347 | |
| 348 | if (sMemBaseNotifyFunc != NULL) |
| 349 | { |
| 350 | sMemBaseNotifyFunc(); |
| 351 | } |
| 352 | return heap->state_idx - 1; |
| 353 | } |
| 354 | |
| 355 | S32 xMemPushBase() |
| 356 | { |
no outgoing calls
no test coverage detected