Include guard definining 1

Just wondering what subtle differences could arise, if any, from doing

1
2
3
4
#ifndef _GLIBCXX_QUEUE
#define _GLIBCXX_QUEUE 1
...
#endif /* _GLIBCXX_QUEUE */ 

as opposed to
1
2
3
4
#ifndef _GLIBCXX_QUEUE
#define _GLIBCXX_QUEUE
...
#endif /* _GLIBCXX_QUEUE */ 


Edit: I just figured it out

It's so you can do #if ___AAAA AND #ifdef ___AAAA
Last edited on
Topic archived. No new replies allowed.