Names used for include guards?

前端 未结 3 1332
陌清茗
陌清茗 2021-01-22 15:25

Are there any guidelines people tend to follow when selecting a name for their include guard? I don\'t understand why the name for the .h file will slightly dif

3条回答
  •  野性不改
    2021-01-22 16:01

    Most modern compiler support the #pragma once directive that could be used instead. See: https://en.wikipedia.org/wiki/Pragma_once

提交回复
热议问题