Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

--enable-magic (CWDEBUG_MAGIC)
Collaboration diagram for --enable-magic (CWDEBUG_MAGIC):

Adds a magic number to the beginning and the end of each allocated memory block, and checks this when the block is deleted or reallocated.

When to use it

In general, this should be used as long as you are developing a program, unless you want to do speed tests.

Configure option

This is enabled by default (but --enable-alloc (CWDEBUG_ALLOC) must be enabled as well).  Use configure –disable-magic to disable it.

See Also
Overflow/Underflow Protection (Red Zones)
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.