From 127a61d4921235cb7a7037133b160a0c654de221 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 27 Mar 2015 21:00:03 -0400 Subject: [PATCH] [utils] adding pop method on the improved vectors --- src/vector.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vector.h b/src/vector.h index 964656c3..31d38666 100644 --- a/src/vector.h +++ b/src/vector.h @@ -23,13 +23,15 @@ extern "C" { static inline void name##_push(name *array, type value) { \ kv_push(type, *array, value); \ } \ + static inline void name##_pop(name *array) { \ + kv_pop(*array); \ + } \ static inline void name##_clear(name *array) { \ kv_clear(*array); \ } \ static inline void name##_resize(name *array, size_t size) { \ kv_resize(type, *array, size); \ - } - + } #define __VECTOR_DESTROY(name, type) \ static inline void name##_destroy(name *array) { \