C99/GNU99对inline关键字的处理不同于C89
来源:互联网 发布:林弯弯的淘宝店叫什么 编辑:程序博客网 时间:2024/06/05 10:13
C99 inline semantics are often misunderstood. The inline specifier serves two purposes:
First, as a compiler hint in case of
static inline
andextern inline
declarations. Semantics remain unchanged if you remove the specifier.Second, in case of raw inline (ie without
static
orextern
) to provide an inline definition as an alternative to an external one, which has to be present in a different translation unit. Not providing the external one is undefined behaviour, which will normally manifest as linking failure.
带有static
和extern
的情况下,
static inline === staticextern inline === extern
否则,和
inline === extern
Ref: http://stackoverflow.com/a/16254679
0 0
- C99/GNU99对inline关键字的处理不同于C89
- c99、gnu99与c89
- c99标准对c89的改变
- C99中的restrict和C89的volatile关键字
- C89与C99的比较
- C99与C89的区别
- C89与C99的主要区别
- C89与C99标准的区别
- C99标准和C89标准的区别
- ASCII C89 与C99的区别
- c89与c99区别
- C99 to C89
- c89与c99区别
- C99与C89对比
- C89与C99
- [inline]C99中inline的使用
- C89标准 C99标准 函数结构定义的限制
- c99标准与c89标准的主要区别
- IBokan_ios80_自学系列_1(switch语句+if...else...语句练习)
- HTTP协议之响应头Date与Age
- 点修改密码后,用JS实现弹出框 在框里输入密码后点修改返回
- 设计模式学习笔记--策略模式(Strategy Pattern)
- 健长乐胶囊真的可以长高吗?网上是不是造谣
- C99/GNU99对inline关键字的处理不同于C89
- 杭电参考了别人的题记得写总结
- BZOJ1002
- http://www.51testing.com/html/11/n-853611-2.html
- C#Winform通过鼠标拖拽来移动图片
- AMD, CommonJS, UMD?
- C语言中关于#ifdef _cplusplus extern "C"
- vs调试C++程序时提示 系统找不到指定文件
- IOS学习之网络笔记