fp.cpp
来自「通用网络游戏开发框架」· C++ 代码 · 共 28 行
CPP
28 行
// ============================================================================
// Turn on floating point exceptions
//
// (c) 2003 Ken Reed
//
// This is free software. You can redistribute it and/or modify it under the
// terms of the GNU General Public License version 2 as published by the Free
// Software Foundation.
// ============================================================================
#include "stdafx.h"
#include <float.h>
// ============================================================================
// Enable exceptions
// ============================================================================
void enable_fp_exceptions()
{
unsigned int cw = _controlfp( 0, 0 );
cw &= ~(_EM_OVERFLOW | _EM_UNDERFLOW | _EM_ZERODIVIDE | _EM_DENORMAL);
_controlfp( cw, MCW_EM );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?