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.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h
index effffb3..514297c 100644
--- a/new/uipriv_darwin.h
+++ b/new/uipriv_darwin.h
@@ -14,7 +14,7 @@ struct uiSizing {
// TODO see if we can override alloc instead
#ifdef uiLogAllocations
#import <stdio.h>
-#define uiLogObjCClassAllocations(deallocCode) \
+#define uiLogObjCClassAllocations \
+ (id)alloc \
{ \
id thing; \
@@ -24,17 +24,11 @@ struct uiSizing {
} \
- (void)dealloc \
{ \
- deallocCode \
[super dealloc]; \
fprintf(stderr, "%p free\n", self); \
}
#else
-#define uiLogObjCClassAllocations(deallocCode) \
-- (void)dealloc \
-{ \
- deallocCode \
- [super dealloc]; \
-}
+#define uiLogObjCClassAllocations
#endif
// util_darwin.m