Page 1 of 1

#pragma message

Posted: Thu Aug 28, 2008 9:04 am
by Antonio Linares
I always forget this one, so better keep a reminder here :-)

How to display a C preprocessor output message:

#pragma message "Here!"

Posted: Fri Oct 10, 2008 7:15 pm
by Antonio Linares
Checking several preprocessor defined values:

#if defined( VALUE1 ) || defined( VALUE2 ) || ...

Re: #pragma message

Posted: Thu Sep 10, 2020 9:46 am
by Antonio Linares
For VC use pragma message like this:

#pragma message( "Here!" )

https://docs.microsoft.com/en-us/cpp/pr ... ew=vs-2019