9.90 #pragma once
Enable the compiler to skip subsequent includes of that header file.
#pragma once is accepted for compatibility with other compilers, and enables you to use other forms of header guard coding. However, ARM recommends to use #ifndef and #define coding because this is more portable.
Example
The following example shows the placement of a #ifndef guard around the body of the file, with a #define of the guard variable after the #ifndef.
#ifndef FILE_H
#define FILE_H
#pragma once // optional
... body of the header file ...
#endif
The #pragma once is marked as optional in this example. This is because the compiler recognizes the #ifndef header guard coding and skips subsequent includes even if #pragma once is absent.
需要翻译吗?哈哈
实在不行还是老老实实的#ifndef吧。
评分
查看全部评分
多谢 不支持那就没办法了
多谢 不支持就没办法了 。。。。
good 换成V6真可以啊 赞一个 用V6有没有其他问题 先用一段时间看看
#pragma once
9.90 #pragma once
Enable the compiler to skip subsequent includes of that header file.
#pragma once is accepted for compatibility with other compilers, and enables you to use other forms of header guard coding. However, ARM recommends to use #ifndef and #define coding because this is more portable.
Example
The following example shows the placement of a #ifndef guard around the body of the file, with a #define of the guard variable after the #ifndef.
#ifndef FILE_H
#define FILE_H
#pragma once // optional
... body of the header file ...
#endif
The #pragma once is marked as optional in this example. This is because the compiler recognizes the #ifndef header guard coding and skips subsequent includes even if #pragma once is absent.
需要翻译吗?哈哈
评分
查看全部评分
太小瞧我了 这点水平还是有的
这是语法功能啊 这个我知道 编译器现在不识别 现在已经解决了 换成V6的编译器就可以了