12 {
14
15 alloc_2048_buffer buf;
16 alloc_2048 alloc = alloc_2048_new(&buf, stdalloc_get_ref());
17 vec_char vec = vec_char_new(&alloc);
18
20 for (char x = 1; x <= 9; x++) {
21 vec_char_push(&vec, (char)('0' + x));
22 }
23
24 vec_char_iter_const iter = vec_char_get_iter_const(&vec);
25 char const* entry;
26 while ((entry = vec_char_iter_const_next(&iter))) {
28 }
29
30 vec_char_delete(&vec);
31}
#define DC_SCOPED(type,...)
RAII in C. Call the destructor when the variable goes out of scope.
#define DC_LOGGER_NEW(...)