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

Developer

API Reference

_HEAP_DEBUG

Brew Release
Brew MP 1.0.2
See Also
IRealloc_ErrRealloc() IRealloc_ErrReallocNoZI() IRealloc_ErrMalloc() IRealloc_ErrMallocNoZI()
Description
Configurable macro to turn on automatic debug names on heap operations
Value: _HEAP_DEBUG may be explicitly configured to be either 0 or 1, or it may be implicitly set based on the presence of the _DEBUG macro.
Side Effect
  • If _HEAP_DEBUG is set to a non-zero value, then all of the IRealloc methods and helpers which don't explicitly provide a debug name will construct a default debug name based on the source file name and line number where the method is referenced. If _HEAP_DEBUG is set to a non-zero value, it is still possible to make allocation requests which explicitly avoid providing a debug name, by using one of the methods or helpers which does explicitly provide a debug name, and by passing in NULL as the debug name.
Comments
If _HEAP_DEBUG isn't explicitly set, then it will be set to either 0 if the macro _DEBUG is not defined, or it will be set to 1 if the macro _DEBUG is defined.