diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-26 18:21:40 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-26 18:21:40 +0400 |
commit | 3be50219fdc697e257af27342dd227f561a3afde (patch) | |
tree | dcb3426fc22eae9c57b056d34125ac8a66669b59 | |
parent | 3cff99c9a17aa20273c48afe45266c45608b118c (diff) |
Abort on guarded memory manager errors if WITH_ASSERT_ABORT is set
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 4 |
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) |