#pragma message

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

#pragma message

Post 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!"
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Checking several preprocessor defined values:

#if defined( VALUE1 ) || defined( VALUE2 ) || ...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: #pragma message

Post by Antonio Linares »

For VC use pragma message like this:

#pragma message( "Here!" )

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

Antonio Linares
www.fivetechsoft.com
Post Reply