Initial commit

This commit is contained in:
2025-10-25 19:15:56 -05:00
commit e6a978d36b
13 changed files with 459 additions and 0 deletions

12
tests/03_arena_softfail.c Normal file
View File

@@ -0,0 +1,12 @@
#define DEBUG
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include "../include/arena.h"
#include "../include/mem.h"
int main(void){
size_t nbytes = MEM_GB(1024);
Arena a = ARENA(SOFT_FAIL, nbytes);
assert(a.beg == NULL);
return EXIT_SUCCESS;
}