#include header guard format?

后端 未结 13 1611
广开言路
广开言路 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:18

    If you are using Visual Studio or a Microsoft compiler use the pragma way

    #pragma once
    

提交回复
热议问题