diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-08 15:53:50 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-08 15:53:50 -0400 |
| commit | bb229f9dc110fbc1293be02c71ca4b37b038081e (patch) | |
| tree | 2c02fee4340f9af429810c6e801df33ae249b270 /new/uipriv_darwin.h | |
| parent | 25b33c2afd8aa772002f136c2f3bd9d56e22a0ca (diff) | |
Built up a better system for handling data cleanup on Mac OS X; thanks to http://stackoverflow.com/questions/29522715/is-there-a-reliable-way-to-destroy-private-data-structures-when-a-standard-nsvie.
Diffstat (limited to 'new/uipriv_darwin.h')
| -rw-r--r-- | new/uipriv_darwin.h | 10 |
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 |
