cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Obtaining the value of a preprocessor co
Obtaining the value of a preprocessor constant at compile time??
Jun 17, 2016 at 1:26am UTC
JUAN DENT
(326)
I have a preprocessor constant BOOST_MSVC and I want to print its value as I compile the code.. How can I do this?
It could be something like:
#error BOOST_MSVC
but that does not work...
Thanks,
Juan
Jun 17, 2016 at 2:41am UTC
JLBorges
(13770)
See:
http://stackoverflow.com/questions/12637392/c-preprocessor-expand-macro-in-a-warning
Topic archived. No new replies allowed.