summaryrefslogtreecommitdiff
path: root/new/uipriv.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 22:54:21 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 22:54:21 -0400
commit3fc36ec58228f244f841f6ff8953cbbbfea9f350 (patch)
tree59b410a383167a1afd5f6920d73f02033114e07d /new/uipriv.h
parent33b1c29de87a8fa9b5b1d67668730173bb2873ee (diff)
More allocation logging. I wonder if I can just log directly in the allocators themselves...
Diffstat (limited to 'new/uipriv.h')
-rw-r--r--new/uipriv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/new/uipriv.h b/new/uipriv.h
index ccd72e8..30fca00 100644
--- a/new/uipriv.h
+++ b/new/uipriv.h
@@ -2,6 +2,10 @@
#include <stdlib.h>
#include "ui.h"
+#include <stdio.h>
+#define LOGALLOC(p, ty) fprintf(stderr, "%p %s ALLOC\n", p, #ty );
+#define LOGFREE(p, ty) fprintf(stderr, "%p %s FREE\n", p, #ty );
+
typedef struct uiSize uiSize;
typedef struct uiSizing uiSizing;