CHECKNEW | NOCHECKNEW (C++ only)
Category
Error checking and debugging
Pragma equivalent
None.
Purpose
Controls whether a null pointer
check is performed on the pointer that is returned by an invocation
of the throwing versions of operator new
and operator
new[]
.
Syntax
Defaults
NOCHECKNEW
Usage
Use the CHECKNEW option whenever null
pointer is returned from throwing versions of operator new
and operator
new[]
.
This option is independent from option RTCHECK(NULLPTR).
Predefined macros
None.
Related information
For more information
on related compiler options, see: