diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2026-03-10 17:40:58 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2026-03-10 17:40:58 +0800 |
| commit | e0500692be6a8775c0a3c83984fc48d445a5f1d8 (patch) | |
| tree | b669a7072d375acd72905edc2520f4fe87dfa364 /mem.h | |
| parent | 0afd55f721a878ad1104f4343114355778eaa058 (diff) | |
| download | cvn-e0500692be6a8775c0a3c83984fc48d445a5f1d8.tar.gz | |
Move memory and stack to own files and sort before hash.
Diffstat (limited to 'mem.h')
| -rw-r--r-- | mem.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |
