aboutsummaryrefslogtreecommitdiffstats
path: root/src/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.h')
-rw-r--r--src/stack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stack.h b/src/stack.h
index 49f77843..074d43b0 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -46,6 +46,12 @@ serd_stack_new(size_t size)
return stack;
}
+static inline void
+serd_stack_clear(SerdStack* stack)
+{
+ stack->size = SERD_STACK_BOTTOM;
+}
+
static inline bool
serd_stack_is_empty(const SerdStack* stack)
{