Abort on guarded memory manager errors if WITH_ASSERT_ABORT is set

This commit is contained in:
Sergey Sharybin
2011-09-26 14:21:40 +00:00
parent 3cff99c9a1
commit 3be50219fd

View File

@@ -711,6 +711,10 @@ static void rem_memblock(MemHead *memh)
static void MemorY_ErroR(const char *block, const char *error)
{
print_error("Memoryblock %s: %s\n",block, error);
#ifdef WITH_ASSERT_ABORT
abort();
#endif
}
static const char *check_memlist(MemHead *memh)