Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.24 KB

control-flags.md

File metadata and controls

23 lines (18 loc) · 1.24 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Control Flags
Control Flags
11/04/2016
c.flags
flags, control
heap allocation, control flags
debug heap, control flags
8dbd24a5-0633-42d1-9771-776db338465f

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 statement for the routine declarations.

See also

Global Variables and Standard Types