move std allocator to forever allocator

This commit is contained in:
2025-12-06 14:20:50 +01:00
parent d6ad1c7602
commit 8f47d7db2b
@@ -1,8 +1,7 @@
#include <criterion/criterion.h> #include <criterion/criterion.h>
#include "cig.h" #include "cig.h"
// TODO rename std to forever allocator Test(forever_allocator, test) {
Test(std_allocator, test) {
allocator_t this = forever_allocator(); allocator_t this = forever_allocator();
void *ptr = allocator_alloc(this, 10); void *ptr = allocator_alloc(this, 10);
cr_assert(ptr != ((void *)0), "non null from malloc"); cr_assert(ptr != ((void *)0), "non null from malloc");