From 3fc36ec58228f244f841f6ff8953cbbbfea9f350 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 22:54:21 -0400 Subject: More allocation logging. I wonder if I can just log directly in the allocators themselves... --- new/uipriv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'new/uipriv.h') 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 #include "ui.h" +#include +#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; -- cgit v1.2.3