We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f18229 commit 668b739Copy full SHA for 668b739
global.d.ts
@@ -29,6 +29,7 @@ declare global {
29
print_f64: (i: number) => void
30
print_rune: (c: number) => void
31
print_str: (ptr: number, len: number) => void
32
+ print_position: (v: number) => void
33
proc_exit: (i: number) => void
34
}
35
src/lib/import-obj.ts
@@ -52,6 +52,10 @@ const importsObject = {
52
window.__WA_PRINT__ += s
53
54
55
+ this.print_position = (i: number): void => {
56
+ window.__WA_PRINT__ += i
57
+ }
58
+
59
this.proc_exit = (_i: number): void => {
60
// exit(i);
61
0 commit comments