fegetexceptflag, fesetexceptflag
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <<fenv.h>> 中定义
|
||
int fegetexceptflag( fexcept_t* flagp, int excepts ); |
(1) | |
int fesetexceptflag( const fexcept_t* flagp, int excepts ); |
(2) | |
试图获得的全部内容中列出的位掩码参数
2) excepts
,这是一个按位或浮点例外宏的浮点异常标志. 原文:
Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument
excepts
, which is a bitwise OR of the 浮点例外宏. 试图复制
excepts
中列出的flagp
的浮点环境浮点异常标志的全部内容。不产生任何异常,只是修改的标志.原文:
Attempts to copy the full contents of the floating-point exception flags that are listed in
excepts
from flagp
into the floating-point environment. Does not raise any exceptions, only modifies the flags.的浮点异常标志的完整内容不一定是一个布尔值,指示是否引发异常或清除。例如,它可能是一个结构,其中包括布尔状态和触发异常的代码的地址。这些功能获得所有这些内容和获取/存储在
flagp
实现自定义格式.原文:
The full contents of a floating-point exception flag is not necessarily a boolean value indicating whether the exception is raised or cleared. For example, it may be a struct which includes the boolean status and the address of the code that triggered the exception. These functions obtain all such content and obtain/store it in
flagp
in implementation-defined format.目录 |
[编辑] 参数
flagp | - | fexcept_t的标志将被存储或读取对象的指针
原文: pointer to an fexcept_t object where the flags will be stored or read from |
excepts | - | 列出的异常标志的位掩码来获取/设置
原文: bitmask listing the exception flags to get/set |
[编辑] 返回值
0成功,否则返回非零值.
[编辑] 示例
本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
C++ documentation for fegetexceptflag, fesetexceptflag
|