This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what's thie meaning for "#ifndef __C51__"

In Keil demos, I find some definitions such as "#ifndef __C51__", what's the meaning for double '_'.

Parents
  • They have no particular meaning whatsoever. They're part of the symbol name, i.e. the symbol really is "__C51__", not "C51".

    The C standard reserves all identifies starting with __ to the compiler maker, so they can have a "protected" set of names to themselves, which no user-code is allowed to trample over.

Reply
  • They have no particular meaning whatsoever. They're part of the symbol name, i.e. the symbol really is "__C51__", not "C51".

    The C standard reserves all identifies starting with __ to the compiler maker, so they can have a "protected" set of names to themselves, which no user-code is allowed to trample over.

Children