I always forget this one, so better keep a reminder here
How to display a C preprocessor output message:
#pragma message "Here!"
#pragma message
- Antonio Linares
- Site Admin
- Posts: 42404
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42404
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42404
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 12 times
- Been thanked: 48 times
- Contact:
Re: #pragma message
For VC use pragma message like this:
#pragma message( "Here!" )
https://docs.microsoft.com/en-us/cpp/preprocessor/message?view=vs-2019
#pragma message( "Here!" )
https://docs.microsoft.com/en-us/cpp/preprocessor/message?view=vs-2019