From a5bb91839219532d133d5561c23120fae6b73cff Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 20 Mar 2018 16:51:33 +0100 Subject: Memory allocator: Clarify consistency check function Also make it to return truth when everything is good and false otherwise. --- intern/guardedalloc/MEM_guardedalloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/guardedalloc/MEM_guardedalloc.h') diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h index a57921223e2..65650209711 100644 --- a/intern/guardedalloc/MEM_guardedalloc.h +++ b/intern/guardedalloc/MEM_guardedalloc.h @@ -165,8 +165,8 @@ extern "C" { /** * Are the start/end block markers still correct ? * - * @retval 0 for correct memory, 1 for corrupted memory. */ - extern bool (*MEM_check_memory_integrity)(void); + * @retval true for correct memory, false for corrupted memory. */ + extern bool (*MEM_consistency_check)(void); /** Set thread locking functions for safe memory allocation from multiple * threads, pass NULL pointers to disable thread locking again. */ -- cgit v1.2.3