Multiple Changes

This commit is contained in:
2026-05-02 01:02:01 +03:00
parent 7663c76329
commit c38e5784e9
5 changed files with 54 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
#define EV_VEC_IMPLEMENTATION
#include "ev_vec.h"
#include <assert.h>
int main(void)
{
{
ev_vec(i32) v = ev_vec_init(i32);
assert(v != NULL);
for(i32 i = 0; i < 5; i++) {
assert(ev_vec_push_impl(&v, &i) >= 0);
}
ev_vec_error_t err = ev_vec_setcapacity(&v, 2);
assert(err != EV_VEC_ERR_NONE || ev_vec_len(&v) <= ev_vec_capacity(&v));
ev_vec_fini(&v);
}
return 0;
}