<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>DigitalGhost</author_name>
  <author_url>https://blog.hatena.ne.jp/DigitalGhost/</author_url>
  <blog_title>デ-mk6</blog_title>
  <blog_url>https://dechimal.hatenadiary.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Preprocessor</anon>
  </categories>
  <description>プリプロセッサは所詮文字列置換、計算なんてできやしない…そう思っている方は多いでしょう。しかしそれは違います。計算できます。 本日の目的はプリプロセッサで足し算です。ADD(3, 2)と書けば5と答えてくれる関数マクロを作ってみましょう。 おっと、#define ADD(m, n) ((m) + (n)) とかではありません。これで足し算をするのは誰か、それはコンパイル・実行したときの処理系です。 今日の目的はあくまでも、プリプロセッサという処理系に閉じた足し算を定義することです。言い換えればプリプロセスが終わった時点で結果がでていないといけません。あとなんか細かいことはある感じがしますが、も…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdechimal.hatenadiary.com%2Fentry%2F20090624%2F1245829833&quot; title=&quot;プリプロセッサで足し算しましょう！ - デ-mk6&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>2009-06-24 16:50:33</published>
  <title>プリプロセッサで足し算しましょう！</title>
  <type>rich</type>
  <url>https://dechimal.hatenadiary.com/entry/20090624/1245829833</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
