Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-09-26 18:21:40 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-09-26 18:21:40 +0400
commit3be50219fdc697e257af27342dd227f561a3afde (patch)
treedcb3426fc22eae9c57b056d34125ac8a66669b59 /intern/guardedalloc
parent3cff99c9a17aa20273c48afe45266c45608b118c (diff)
Abort on guarded memory manager errors if WITH_ASSERT_ABORT is set
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r--intern/guardedalloc/intern/mallocn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c
index 3614445ad27..cedaf53a4bb 100644
--- a/intern/guardedalloc/intern/mallocn.c
+++ b/intern/guardedalloc/intern/mallocn.c
@@ -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)