Make memory allocators pluggable

This commit is contained in:
dcodeIO
2018-01-28 19:33:05 +01:00
parent 78debee847
commit 896810859e
13 changed files with 16 additions and 41 deletions

View File

@ -1,3 +1,5 @@
import "std:memory/arena";
// note that this doesn't test a real set implementation yet, see std/assembly/set.ts
var set = changetype<Set<i32>>(allocate_memory(sizeof<usize>() + 2 * sizeof<i32>()));