#pragma message

#pragma message

Postby Antonio Linares » Thu Aug 28, 2008 9:04 am

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: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Oct 10, 2008 7:15 pm

Checking several preprocessor defined values:

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

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

Re: #pragma message

Postby Antonio Linares » Thu Sep 10, 2020 9:46 am

For VC use pragma message like this:

#pragma message( "Here!" )

https://docs.microsoft.com/en-us/cpp/preprocessor/message?view=vs-2019
regards, saludos

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


Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 5 guests