{"description":"Objective-C + C99\u9650\u5b9a\u306a\u3093\u3060\u3051\u3069 #define pool for (NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; pool; [pool drain], pool = 0) \u3068\u304b\u3063\u3066\u5b9a\u7fa9\u3057\u3066\u304a\u304f\u3068 void foo() { pool { NSObject *obj = [[MyObject alloc] init]; [obj autorelease]; } } \u306e\u3088\u3046\u306a\u66f8\u304d\u65b9\u304c\u3067\u304d\u308b\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u3002\u3084\u3001\u5b9f\u306f\u3059\u3067\u306b\u4f3c\u305f\u3088\u3046\u306a\u30de\u30af\u30ed\u304c\u3069\u3053\u304b\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u305f\u308a\u3057\u3066\u3002","image_url":null,"version":"1.0","type":"rich","author_url":"https://blog.hatena.ne.jp/moriyoshi/","url":"https://moriyoshi.hatenablog.com/entry/20090324/1237919716","author_name":"moriyoshi","height":"190","title":"Autorelease pool\u3092\u898b\u6804\u3048\u3088\u304f\u4f7f\u3046\u30de\u30af\u30ed","categories":["MacOSX","Cocoa","Objective-C","AutoreleasePool"],"blog_url":"https://moriyoshi.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoriyoshi.hatenablog.com%2Fentry%2F20090324%2F1237919716\" title=\"Autorelease pool\u3092\u898b\u6804\u3048\u3088\u304f\u4f7f\u3046\u30de\u30af\u30ed - moriyoshi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2009-03-24 03:35:16","blog_title":"moriyoshi\u306e\u65e5\u8a18"}