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>2014-09-28 07:24:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-28 09:08:54 +0400
commita4c3b9229448e93f10a7706800822b1e0119c033 (patch)
tree7270a0f1596bc5b3f569441664de9f8115ad4818 /source/blender/blenlib/BLI_stack.h
parent99ef213dcbab68debe7047996a2e26380254d093 (diff)
BLI_Stack add BLI_stack_peek, BLI_stack_discard
also remove own incorrect assert
Diffstat (limited to 'source/blender/blenlib/BLI_stack.h')
-rw-r--r--source/blender/blenlib/BLI_stack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_stack.h b/source/blender/blenlib/BLI_stack.h
index 1e0b29bc7e8..a8c4478c450 100644
--- a/source/blender/blenlib/BLI_stack.h
+++ b/source/blender/blenlib/BLI_stack.h
@@ -46,6 +46,9 @@ void BLI_stack_push(BLI_Stack *stack, const void *src) ATTR_NONNULL();
void BLI_stack_pop_n(BLI_Stack *stack, void *dst, unsigned int n) ATTR_NONNULL();
void BLI_stack_pop(BLI_Stack *stack, void *dst) ATTR_NONNULL();
+void *BLI_stack_peek(BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
+void BLI_stack_discard(BLI_Stack *stack) ATTR_NONNULL();
+
size_t BLI_stack_count(const BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
bool BLI_stack_is_empty(const BLI_Stack *stack) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();