"Dave" <be***********@yahoo.com> wrote in message
news:vp************@news.supernews.com...
Is the construct #if defined MACRO_NAME part of standard C++?
If so, how does it differ from #ifdef?
Yes, you can use either I think. You can choose
#ifdef
#if defined
#ifndef
#if !defined
I see no mention of "defined" in Stroustrup's C++ Programming Language 3rd
ed. It's a bit more sophisticated in terms of logic, since you can write
things like
#if defined (macro1) || !defined (macro2) || defined (macro3)