API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IREALLOC_FREEIF()

Brew Release
Brew MP 1.0.2
See Also
IRealloc_Free()
Description
Helper macro for freeing allocated blocks.
Params
piRealloc
[]:
pointer to the IRealloc interface
pBlock
[]:
pointer to a block previously allocated from this interface
Prototype
  •    void IREALLOC_FREEIF(IRealloc *piRealloc, void *pBlock);
    
Return
  • None
Side Effect
  • Sets pBlock to NULL upon successful completion.
Comments
This helper macro behaves much like IRealloc_Free(), except that it also explicitly sets pBlock to NULL upon successful completion. The second parameter to this macro must be a pointer expression suitable for the left side of an assignment ("=") operator.