aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/alloc.h
blob: 5e92573f7fda738746b2c38b071307af8916b1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SHED_ALLOC_H
#define SHED_ALLOC_H

#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