add memory safety
/ sync-to-origin (push) Waiting to run

This commit is contained in:
2025-03-31 20:26:56 +02:00
parent dfa0774242
commit 096b1d1eb6
6 changed files with 171 additions and 67 deletions
+4
View File
@@ -1,10 +1,14 @@
#include "memory.h"
#include <curses.h>
#include <string>
#include <vector>
// header guard
#ifndef _ba_hf_hg_
#define _ba_hf_hg_
extern std::vector<allocation> *current_allocated;
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
void safe_exit(int code);