Obtaining the value of a preprocessor constant at compile time??

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
Topic archived. No new replies allowed.