From e0500692be6a8775c0a3c83984fc48d445a5f1d8 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Tue, 10 Mar 2026 17:40:58 +0800 Subject: Move memory and stack to own files and sort before hash. --- mem.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mem.h (limited to 'mem.h') diff --git a/mem.h b/mem.h new file mode 100644 index 0000000..546b004 --- /dev/null +++ b/mem.h @@ -0,0 +1,10 @@ +#ifndef MEM_H +#define MEM_H + +#define MALLOC(s) _xmalloc((s), __FILE__, __LINE__) +#define REALLOC(p, s) _xrealloc((p), (s), __FILE__, __LINE__) + +void *_xmalloc(size_t s, const char *file, int line); +void *_xrealloc(void *ptr, size_t s, const char *file, int line); + +#endif /* MEM_H */ -- cgit v1.2.3