fix compiling with valgrind support

This commit is contained in:
alufolie91 committed 2026-03-01 21:24:09 +01:00
1 parent 60ee34734c
commit bea274dbd8
1 file changed
+10 -2
+10 -2
View File
@@ -538,11 +538,19 @@ void Z_CheckHeap(INT32 tag)
#ifdef VALGRIND_MEMPOOL_EXISTS
if (!VALGRIND_MEMPOOL_EXISTS(block))
{
I_Error("Z_CheckHeap %d: block %u"
I_Error("Z_CheckHeap :"
#ifdef ZDEBUG
" %s %d"
#endif
" block %u"
#ifdef ZDEBUG
" (owned by %s:%d)"
#endif
" should not exist", i, blocknumon
" should not exist"
#ifdef ZDEBUG
, file, line
#endif
, blocknumon
#ifdef ZDEBUG
, block->ownerfile, block->ownerline
#endif