diff options
Diffstat (limited to 'new/uipriv.h')
| -rw-r--r-- | new/uipriv.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/new/uipriv.h b/new/uipriv.h index ccd72e8..2999d0c 100644 --- a/new/uipriv.h +++ b/new/uipriv.h @@ -18,7 +18,10 @@ struct uiControl { void (*resize)(uiControl *, intmax_t, intmax_t, intmax_t, intmax_t, uiSizing *); }; -extern void *uiAlloc(size_t); -#define uiNew(T) ((T *) uiAlloc(sizeof (T))) -extern void *uiRealloc(void *, size_t); +// TODO write this comment +#define uiLogAllocations + +extern void *uiAlloc(size_t, const char *); +#define uiNew(T) ((T *) uiAlloc(sizeof (T), #T )) +extern void *uiRealloc(void *, size_t, const char *); extern void uiFree(void *); |
