This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: extar token question


> #ifdef  DEBUG
> #define IP_DEBUG
> #endif  DEBUG
> 

#ifdef  DEBUG
#define IP_DEBUG
#endif  // DEBUG

* but better;

#ifdef DEBUG
#    ifndef IP_DEBUG
#    define IP_DEBUG
#    endif
#endif

Otherwise you will also get a warning for defining IP_DEBUG multiple
times.

This is really not a gcc question.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]