LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 897|回复: 1

在unistd.h中的__THROW有什么特殊含义的啊?

[复制链接]
发表于 2004-12-9 23:28:23 | 显示全部楼层 |阅读模式
在unistd.h文件中关于getuid()有下面的声明:extern __uid_t getuid (void) __THROW;
这个__THROW有什么特殊含义的啊?找不到__THROW的定义啊!
发表于 2004-12-10 08:57:34 | 显示全部楼层
/usr/include/malloc.h

  1. /* GCC can always grok prototypes.  For C++ programs we add throw()
  2.    to help it optimize the function calls.  But this works only with
  3.    gcc 2.8.x and egcs.  */
  4. # if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8)
  5. #  define __THROW       throw ()
  6. # else
  7. #  define __THROW
  8. # endif
复制代码

以后碰到问题先搜索,不行再后发贴求助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表