[Bf-blender-cvs] [c77f837598b] master: Revert "Cleanup: remove declaration for removed function"

Campbell Barton noreply at git.blender.org
Tue Jan 11 08:16:25 CET 2022


Commit: c77f837598b2653d9cb2acd3f9c496e001c9a03e
Author: Campbell Barton
Date:   Tue Jan 11 18:01:28 2022 +1100
Branches: master
https://developer.blender.org/rBc77f837598b2653d9cb2acd3f9c496e001c9a03e

Revert "Cleanup: remove declaration for removed function"

This reverts commit aa363ec2ae9382c052f024284dcdb77ac495c177.

The function still exists, this commit caused a warning with Clang
So keep MEM_printmemlist_pydict.

===================================================================

M	intern/guardedalloc/MEM_guardedalloc.h

===================================================================

diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index decd648c5d5..8a20323dcfc 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -147,6 +147,12 @@ extern void *(*MEM_mallocN_aligned)(size_t len,
                                     const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
     ATTR_ALLOC_SIZE(1) ATTR_NONNULL(3);
 
+/**
+ * Print a list of the names and sizes of all allocated memory
+ * blocks. as a python dict for easy investigation.
+ */
+extern void (*MEM_printmemlist_pydict)(void);
+
 /**
  * Print a list of the names and sizes of all allocated memory blocks.
  */



More information about the Bf-blender-cvs mailing list