<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taiyakisun</author_name>
  <author_url>https://blog.hatena.ne.jp/taiyakisun/</author_url>
  <blog_title>結果だけでなく過程も見てください</blog_title>
  <blog_url>https://taiyakisun.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>C++</anon>
  </categories>
  <description>特定の意味をもつリターンコード等の固定値は ある程度１つのヘッダに集中して定義すると思います。 例えば、C言語ではマクロ変数を使用して以下のように定義します。 人によってはC++でも以下のように定義するかもしれません。 #define RETCODE_SUCCESS (0) #define RETCODE_FAIL (1) #define RETCODE_WARN (2) マクロ変数は、コンパイラではなくプリプロセッサで置き換えられるので コンパイラはRETCODE_SUCCESSやRETCODE_FAILなどのシンボルを 認識することができません。 これはプログラム上の各所にマジックナンバー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaiyakisun.hatenablog.com%2Fentry%2F20101209%2F1291915414&quot; title=&quot;C++では定数はヘッダではなくソースファイルに書こう - 結果だけでなく過程も見てください&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>2010-12-09 02:23:34</published>
  <title>C++では定数はヘッダではなくソースファイルに書こう</title>
  <type>rich</type>
  <url>https://taiyakisun.hatenablog.com/entry/20101209/1291915414</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
