471,047 Members | 1,247 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,047 software developers and data experts.

#ifdef inside #ifndef - is it possible?

I have code like

#ifndef ABC
#define ABC
...

...
#ifdef XYZ
...
..
..
..
#endif
#endif

Is this possible?
If not then pls let me know what could be alternative for this?
Thanks in Advanced.

Ajay
Oct 5 '06 #1
1 3761
Banfa
9,065 Expert Mod 8TB
That's fine, nesting preprocessor statements is not a problem
Oct 5 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by lovecreatesbeauty | last post: by
6 posts views Thread by Michael B Allen | last post: by
9 posts views Thread by Qiao Jian | last post: by
1 post views Thread by Michael Sgier | last post: by
5 posts views Thread by anushhprabu | last post: by
6 posts views Thread by canoewhiteh2o | last post: by
6 posts views Thread by anirbid.banerjee | last post: by
10 posts views Thread by David W | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.