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:
authorCampbell Barton <ideasman42@gmail.com>2017-10-29 10:23:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-29 10:23:33 +0300
commit512b879241d79bf91f70eecdc97944505d64bf6e (patch)
treec3f8619435940642fcced1e9bf5463cc23dfb494 /source/blender/blenlib/BLI_heap.h
parent560fa6db170261be0010b2be769bc8591e0a7f7e (diff)
BLI_heap: add validation check, improve tests
Also minor readability changes, avoid running both heap_up/down gives minor speedup too.
Diffstat (limited to 'source/blender/blenlib/BLI_heap.h')
-rw-r--r--source/blender/blenlib/BLI_heap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_heap.h b/source/blender/blenlib/BLI_heap.h
index dcdbf53c0bb..d3f6d44e164 100644
--- a/source/blender/blenlib/BLI_heap.h
+++ b/source/blender/blenlib/BLI_heap.h
@@ -50,5 +50,7 @@ void BLI_heap_node_value_update_ptr(Heap *heap, HeapNode *node, float
/* Return the value or pointer of a heap node. */
float BLI_heap_node_value(const HeapNode *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
void *BLI_heap_node_ptr(const HeapNode *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
+/* only for gtest */
+bool BLI_heap_is_valid(const Heap *heap);
#endif /* __BLI_HEAP_H__ */