diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 15:10:04 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 15:10:04 +0000 |
| commit | 297b999d2a76e9f264295a3cf47111937aaa3482 (patch) | |
| tree | ea38ac8d4cdbaf844ecce7f2af07aa12fbb11d80 /runtime/src/alloc.c | |
| parent | 8f1f6e418ddc6bb03331a3aa7b1aa23bb824addb (diff) | |
Add GC collect function
Diffstat (limited to 'runtime/src/alloc.c')
| -rw-r--r-- | runtime/src/alloc.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/src/alloc.c b/runtime/src/alloc.c index f7972fbf..f68fb128 100644 --- a/runtime/src/alloc.c +++ b/runtime/src/alloc.c @@ -1,14 +1,5 @@ #include "./std/unistd.h" - -#ifdef __WASM__ - -void* malloc(unsigned long); - -#else - -#include <stdlib.h> - -#endif +#include "./alloc.h" void* shed__runtime__alloc(size_t size) { return malloc(size); |
