summaryrefslogtreecommitdiff
path: root/new/uipriv_darwin.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 02:28:42 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 02:28:42 -0400
commit5597606f188833979a7dbcf4a833e55e678f6e82 (patch)
tree5ce4fe6376d7370f25d8d128141006f6eab21396 /new/uipriv_darwin.h
parentd37bc67158228e75dc4f47cf445c771a890fb35a (diff)
Better monitoring of Objective-C objects (including main GUI objects).
Diffstat (limited to 'new/uipriv_darwin.h')
-rw-r--r--new/uipriv_darwin.h10
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 \
{ \