C macro/#define indentation? -


I'm curious why I format almost all macros in such a way:

  #ifndef FOO # Define FOO #endif  

Or this:

  #ifndef FOO #define FOO #endif  

But never:

  #ifndef FOO #define FOO #endif  

(Also, vim's = The operator only feels that the first two are counted as correct.)

Is it between the compilers due to portability, or is it just a standard practice?

Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -