Microsoft DirectX 9.0

NAME

The NAME macro generates a debug-only string.

Syntax

NAME(
    strLiteral
);

Parameters

strLiteral

Text string.

Remarks

In debug builds, this macro is equivalent to the TEXT macro. In retail builds, it resolves to (TCHAR*) NULL. This macro is useful when declaring the name of an object that derives from the CBaseObject class.

Example

pObject = new CBaseObject(NAME("My Object"));

See Also