c preprocessor - C++ #ifndef for include files, why is all caps used for the header file? -


I wonder why the name after the #ifndef instruction is always all caps and not so To match the name of the real headers file? What are the rules around it? I was looking around the net, but I have not got any explanation for this. If my header file has the Maierheader It is OK to use it:

  #ifndef MYHEADER  

If so, why? What are the rules? These are preprocessor symbols and there are no such rules (unless they have #defines

)

However, conference pre-processor symbols have to use all-caps.


Comments