1
0
Fork 0

Compare commits

...

2 Commits

1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
extern unsigned char __heap_base;
#define IMPORT(name) __attribute__((import_module("env"), import_name(#name)))
@ -12,6 +12,7 @@ typedef uint32_t size_t;
EXPORT(malloc) void* malloc(size_t);
EXPORT(free) void free(void*);
EXPORT(realloc) void* realloc(void*, size_t);
void* memset(void* s, uint8_t c, uint32_t n);
void* memcpy(void* dest, const void* src, uint32_t n);