mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 04:01:46 +00:00
More cleanup and a possible fix for #29
This commit is contained in:
@ -15,6 +15,4 @@ export function free_memory(ptr: usize): void {
|
||||
_free(ptr);
|
||||
}
|
||||
|
||||
export function reset_memory(): void {
|
||||
throw new Error("not supported");
|
||||
}
|
||||
export { reset_memory } from "./none";
|
||||
|
11
std/assembly/allocator/none.ts
Normal file
11
std/assembly/allocator/none.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export function allocate_memory(size: usize): usize {
|
||||
throw new Error("not supported");
|
||||
}
|
||||
|
||||
export function free_memory(ptr: usize): void {
|
||||
throw new Error("not supported");
|
||||
}
|
||||
|
||||
export function reset_memory(): void {
|
||||
throw new Error("not supported");
|
||||
}
|
@ -14,6 +14,4 @@ export function free_memory(ptr: usize): void {
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
export function reset_memory(): void {
|
||||
throw new Error("not supported");
|
||||
}
|
||||
export { reset_memory } from "./none";
|
||||
|
@ -486,3 +486,5 @@ export function free_memory(data: usize): void {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { reset_memory } from "./none";
|
||||
|
Reference in New Issue
Block a user