Subscribe

moriyoshiの日記

Top > AutoreleasePool

AutoreleasePool

2009-03-24

Autorelease poolを見栄えよく使うマクロ

MacOSX Cocoa Objective-C AutoreleasePool

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 autoreleas…

Hatena Bookmark - Autorelease poolを見栄えよく使うマクロ
Profile
id:moriyoshi id:moriyoshi
Subscribed unsubscribe Subscribe Subscribe
About this blog
Search
Links
  • Hatena Blog
  • ブログをはじめる
  • Weekly Hatena Blog
  • Hatena Blog Pro
Recent Entries
  • Goならわかるシステムプログラミング第2版が出たので書評しますね
  • Goのロギングライブラリ 2021年冬
  • 無効値の話①
  • nilが欲しいからと言ってむやみにポインタを使うとひどい目にあう話
  • 「ユニコード」で予期せぬ目に遭った話
Archive
moriyoshiの日記 moriyoshiの日記

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe