Indenting #defines

后端 未结 9 2099
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 00:34

I know that #defines, etc. are normally never indented. Why?

I\'m working in some code at the moment which has a horrible mixture of #define

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 00:39

    I don't know why it's not more common. There are certainly times when I like to indent preprocessor directives.

    One thing that keeps getting in my way (and sometimes convinces me to stop trying) is that many or most editors/IDEs will throw the directive to column 1 at the slightest provocation. Which is annoying as hell.

提交回复
热议问题