summaryrefslogtreecommitdiff
path: root/new/uipriv_darwin.h
diff options
context:
space:
mode:
Diffstat (limited to 'new/uipriv_darwin.h')
-rw-r--r--new/uipriv_darwin.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h
index dd3467a..e1b38af 100644
--- a/new/uipriv_darwin.h
+++ b/new/uipriv_darwin.h
@@ -11,6 +11,24 @@
struct uiSizing {
};
+#ifdef uiLogAllocations
+#import <stdio.h>
+#define uiLogObjCClassAllocations \
+- (id)init \
+{ \
+ self = [super init]; \
+ fprintf(stderr, "%p alloc %s\n", self, [[self className] UTF8String]); \
+ return self; \
+} \
+- (void)dealloc \
+{ \
+ [super dealloc]; \
+ fprintf(stderr, "%p free\n", self); \
+}
+#else
+#define uiLogObjCClassAllocations
+#endif
+
// util_darwin.m
extern void setStandardControlFont(NSControl *);