#include header guard format?

后端 未结 13 1619
广开言路
广开言路 2020-12-05 07:46

I know it makes little difference to a project but, assuming you use #defined header guards for your C++ code, what format do you use? e.g. assuming a header called f

13条回答
  •  一生所求
    2020-12-05 08:20

    I use

    _
    

    or

    _INCLUDED_
    

    Keeping it synchronous with folder hierarchies is too annoying (friend of refactoring), GUIDs are too annoying, the date suffix is good enough. If I would have to equally named files on the same day, I would

    _a
    _b
    _...
    

提交回复
热议问题