aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/alloc.h
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 15:10:04 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 15:10:04 +0000
commit297b999d2a76e9f264295a3cf47111937aaa3482 (patch)
treeea38ac8d4cdbaf844ecce7f2af07aa12fbb11d80 /runtime/src/alloc.h
parent8f1f6e418ddc6bb03331a3aa7b1aa23bb824addb (diff)
Add GC collect function
Diffstat (limited to 'runtime/src/alloc.h')
-rw-r--r--runtime/src/alloc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/src/alloc.h b/runtime/src/alloc.h
index b0a4e1cd..5e92573f 100644
--- a/runtime/src/alloc.h
+++ b/runtime/src/alloc.h
@@ -3,6 +3,17 @@
#include "./std/unistd.h"
+#ifdef __WASM__
+
+void* malloc(unsigned long);
+void free(void*);
+
+#else
+
+#include <stdlib.h>
+
+#endif
+
void* shed__runtime__alloc(size_t size);
#endif