Why double Underbar in header files? Thank you..

J

Just that

Q: What does this mean ?
#define IT_MEANS__ //I see this in a lot of source files I downloaded

A:
 
V

Victor Bazarov

Just that said:
Q: What does this mean ?
#define IT_MEANS__ //I see this in a lot of source files I downloaded

A:

Double underscores create an illusion of importance or belonging to
some library code or give off some kind of "cool vibe" to those who
write them. They are doing so in violation of the Standard, though.
Subclause 17.4.3.1.2 reserves all names containing double underscores
to the implementation.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,661
Latest member
FloridaHan

Latest Threads

Top