<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>programming</anon>
  </categories>
  <description>数学関数の引数に不正な値を与えるとエラーが発生しますが、_matherr関数を定義するとエラーが発生する直前に処理することができます。注:以下の記述はBorland C++ Compilerにて確認を行っています。環境によっては関数名や定数名が違ったり(gccではアンダースコアが付かない?)、また_matherr関数の上書きができない場合もあります(らしい)ので、試す場合は使用している環境のマニュアルの方も参照してください。 _matherr関数は次のように宣言されています。 int _matherr(struct _exception* e); 戻り値に0以外の値を返すと、処理系で実装されて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20061017%2F1161052576&quot; title=&quot;数学関数のエラーを処理する _matherr 関数 - 閑古鳥&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-10-17 11:36:16</published>
  <title>数学関数のエラーを処理する _matherr 関数</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20061017/1161052576</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
