<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moriyoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/moriyoshi/</author_url>
  <blog_title>moriyoshiの日記</blog_title>
  <blog_url>https://moriyoshi.hatenablog.com/</blog_url>
  <categories>
    <anon>MacOSX</anon>
    <anon>Cocoa</anon>
    <anon>Objective-C</anon>
    <anon>AutoreleasePool</anon>
  </categories>
  <description>Objective-C + C99限定なんだけど #define pool for (NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; pool; [pool drain], pool = 0) とかって定義しておくと void foo() { pool { NSObject *obj = [[MyObject alloc] init]; [obj autorelease]; } } のような書き方ができることに気づいた。や、実はすでに似たようなマクロがどこかに定義されてたりして。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoriyoshi.hatenablog.com%2Fentry%2F20090324%2F1237919716&quot; title=&quot;Autorelease poolを見栄えよく使うマクロ - moriyoshiの日記&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-03-24 03:35:16</published>
  <title>Autorelease poolを見栄えよく使うマクロ</title>
  <type>rich</type>
  <url>https://moriyoshi.hatenablog.com/entry/20090324/1237919716</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
