[utils] adding pop method on the improved vectors
This commit is contained in:
@@ -23,6 +23,9 @@ 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); \
|
||||
} \
|
||||
@@ -30,7 +33,6 @@ extern "C" {
|
||||
kv_resize(type, *array, size); \
|
||||
}
|
||||
|
||||
|
||||
#define __VECTOR_DESTROY(name, type) \
|
||||
static inline void name##_destroy(name *array) { \
|
||||
if (array == NULL) return; \
|
||||
|
||||
Reference in New Issue
Block a user