mmdev 发表于 2013-1-26 14:39:54

GNU C __attribute__

One of the best (but little known) features of GNU C is the __attribute__ mechanism, which allows a developer to attach characteristics to function declarations to allow the compiler to perform more error checking. It was designed in a way to be compatible with non-GNU implementations, and we've been using this for years in highly portable code with very good results.
Table of Contents

[*]__attribute__ format   
[*]__attribute__ noreturn   
[*]__attribute__ const   
[*]Putting them together   
[*]Compatibility with non-GNU compilers   
[*]Other References
页: [1]
查看完整版本: GNU C __attribute__