Control flags
The debug version of the Microsoft C run-time library uses the following flags to control the heap allocation and reporting process. For more information, see CRT debugging techniques.
Flag | Description |
---|---|
_CRTDBG_MAP_ALLOC |
Maps the base heap functions to their debug version counterparts |
_DEBUG |
Enables the use of the debugging versions of the run-time functions |
_crtDbgFlag |
Controls how the debug heap manager tracks allocations |
These flags can be defined with a /D command-line option or with a #define
directive. When the flag is defined with #define
, the directive must appear before the header file #include
directive for the routine declarations.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for