summaryrefslogtreecommitdiff
path: root/new/uipriv.h
blob: c42cbb0e8ffe026df06b1d33a84ec9210e862d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 6 april 2015
#include <stdlib.h>
#include "ui.h"

// uncomment the following line to enable memory logging; see leaks.awk
#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 *);

extern void updateParent(uintptr_t);