Compile time warnings

Does any one know how to specify user defined warnings for #pragma warning directive in VS?

Upvotes: 0

Views: 1077

Answers (1)

Bertrand Marron
Bertrand Marron

Reputation: 22210

#pragma message ("Message")

See How to use the #pragma message to generate user-defined warning messages in Visual C++.

#pragma warning is not used to specify user defined warnings but to modify the behavior of built-in compiler (warning) messages.

Upvotes: 1

Related Questions