Fix imported memory fallback and add common stdlib imports to loader

This commit is contained in:
dcodeIO
2018-11-11 10:44:09 +01:00
parent 9ab7384122
commit 6f3209e6c6
4 changed files with 27 additions and 9 deletions

View File

@ -60,3 +60,7 @@ export const varadd_ptr = varadd;
export function calladd(fn: (a: i32, b: i32) => i32, a: i32, b: i32): i32 {
return fn(a, b);
}
export function dotrace(num: f64): void {
trace("The answer is", 1, num);
}