Is there a way to embed a message in code that is displayed during compile-time when that piece of code is being compiled? The messages are diagnostic in nature and should not modify or abort the compile process.
(Disclaimer: I know the answer to this question. I didn't find it asked on Stack Overflow and I think it would be an useful addition to the knowledge base here.)
This is one way to do it:
#pragma message("Your Message Here")
https://msdn.microsoft.com/en-us/library/x7dkzch2.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With