...Actually, I don't think these are meant to be here

Looking at 501812f307, the entire point
was to *replace* these lines. That explains why they lacked braces
earlier.
master
Clownacy ago%!(EXTRA string=7 years)
parent f7d9426f8e
commit 79dc50bb79
  1. 6
      stb_leakcheck.h

@ -116,20 +116,14 @@ void stb_leakcheck_dumpmem(void)
stb_leakcheck_malloc_info *mi = mi_head;
while (mi) {
if ((ptrdiff_t) mi->size >= 0)
{
stblkck_internal_print("LEAKED", mi->file, mi->line, mi->size, mi+1);
printf("LEAKED: %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) mi->size, (void*)(mi+1));
}
mi = mi->next;
}
#ifdef STB_LEAKCHECK_SHOWALL
mi = mi_head;
while (mi) {
if ((ptrdiff_t) mi->size < 0)
{
stblkck_internal_print("FREED", mi->file, mi->line, ~mi->size, mi+1);
printf("FREED : %s (%4d): %8d bytes at %p\n", mi->file, mi->line, (int) ~mi->size, (void*)(mi+1));
}
mi = mi->next;
}
#endif

Loading…
Cancel
Save