diff options
Diffstat (limited to 'new/uipriv_darwin.h')
| -rw-r--r-- | new/uipriv_darwin.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h index e1b38af..514297c 100644 --- a/new/uipriv_darwin.h +++ b/new/uipriv_darwin.h @@ -11,14 +11,16 @@ struct uiSizing { }; +// TODO see if we can override alloc instead #ifdef uiLogAllocations #import <stdio.h> #define uiLogObjCClassAllocations \ -- (id)init \ ++ (id)alloc \ { \ - self = [super init]; \ - fprintf(stderr, "%p alloc %s\n", self, [[self className] UTF8String]); \ - return self; \ + id thing; \ + thing = [super alloc]; \ + fprintf(stderr, "%p alloc %s\n", thing, [[self className] UTF8String]); \ + return thing; \ } \ - (void)dealloc \ { \ |
