aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/alloc.c
blob: f7972fbfbb7be48e5d11a36cf7b924030dc6e6ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "./std/unistd.h"

#ifdef __WASM__

void* malloc(unsigned long);

#else

#include <stdlib.h>

#endif

void* shed__runtime__alloc(size_t size) {
    return malloc(size);
}