What is the purpose of a single pound/hash sign (#) on its own line in the C/C++ preprocessor?

后端 未结 3 1746
有刺的猬
有刺的猬 2021-01-31 00:40

I have been looking at the Boost libraries source code, and I have noticed that often there are single pound signs without any preprocessor directives attached to them. I read t

3条回答
  •  礼貌的吻别
    2021-01-31 01:34

    It makes the source code look pretty, that's all.

    Highlights the fact that the whole block is a preprocessor section.

    And indeed, both the C and C++ preprocessors must ignore # on a line.

提交回复
热议问题