diff options
Diffstat (limited to 'src/stack.h')
-rw-r--r-- | src/stack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stack.h b/src/stack.h index 62f3402b..f6d33f51 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(SerdStack* stack) { |