summaryrefslogtreecommitdiff
path: root/include/alloc.h
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-09-27 11:34:55 -0400
committerGitHub <noreply@github.com>2019-09-27 11:34:55 -0400
commit301822603ea19ee69b9bd64b266e51a8ed9b7c04 (patch)
treee449cf9dddb0e371f1bc73f1d534d6c4e615305c /include/alloc.h
parent3d9bad5558c6ef8828be7a50e3e553d55ca877e0 (diff)
parentab139bf2542971c085f05617aa4cedbe7ae859dd (diff)
Merge pull request #802 from PikalaxALT/gflib
Gflib and libagbsyscall
Diffstat (limited to 'include/alloc.h')
-rw-r--r--include/alloc.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/alloc.h b/include/alloc.h
deleted file mode 100644
index f2dcf6d46..000000000
--- a/include/alloc.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef GUARD_ALLOC_H
-#define GUARD_ALLOC_H
-
-#define HEAP_SIZE 0x1C000
-#define malloc Alloc
-#define calloc(ct, sz) AllocZeroed((ct) * (sz))
-#define free Free
-
-#define FREE_AND_SET_NULL(ptr) \
-{ \
- free(ptr); \
- ptr = NULL; \
-}
-
-extern u8 gHeap[];
-
-void *Alloc(u32 size);
-void *AllocZeroed(u32 size);
-void Free(void *pointer);
-void InitHeap(void *pointer, u32 size);
-
-#endif // GUARD_ALLOC_H