summaryrefslogtreecommitdiff
path: root/include/alloc.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-09-08 21:07:54 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-09-08 21:07:54 -0400
commit306ce048ad07d62bed2028bfc8f30c03f5bc8db7 (patch)
tree09dada0db49517542634aaf4058a613b350c9feb /include/alloc.h
parent95b805a425844175663f7f10b1b92df690a8b2c0 (diff)
Move gflib srcs and headers to gflib subdir
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