aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/alloc.h
blob: 07a14436ff94f8dfefde2d910f7808426f6eb1d7 (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