message pragma Directive

Pragma directive that produces compiler-time messages.

#pragma message("token-string")

Parameters

Item Description
token-string
Compiler message.

Examples

The following example demonstrates message processing during preprocessing.

#pragma message "Debugging flag set."

See also

Preprocessor Directives (DirectX HLSL)

#pragma Directive (DirectX HLSL)