相关疑难解决方法(0)

#include标头保护格式?

我知道这对项目没有什么影响,但是,假设您使用#defined标头保护C++代码,您使用什么格式?例如假设一个标题foo.hpp:

#ifndef __FOO_HPP__
...

#ifndef INCLUDED_FOO_HPP
...

#ifndef SOME_OTHER_FORMAT
Run Code Online (Sandbox Code Playgroud)

我卖的是关于大写#defines的想法,但不能解决这些守卫的格式.

c++ header c-preprocessor

20
推荐指数
5
解决办法
9258
查看次数

标签 统计

c++ ×1

c-preprocessor ×1

header ×1