-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.mg
74 lines (50 loc) · 2.25 KB
/
env.mg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@wasm_import("env", "get_window")
fn get_window(): opaque;
@wasm_import("env", "get_memory")
fn get_memory(): opaque;
@wasm_import("env", "get_property")
fn get_property(obj: opaque, name: opaque): opaque;
@wasm_import("env", "set_property")
fn set_property(obj: opaque, name: opaque, value: opaque): opaque;
@wasm_import("env", "new0")
fn new0(constructor: opaque): opaque;
@wasm_import("env", "new1")
fn new1(constructor: opaque, arg1: opaque): opaque;
@wasm_import("env", "new2")
fn new2(constructor: opaque, arg1: opaque, arg2: opaque): opaque;
@wasm_import("env", "new3")
fn new3(constructor: opaque, arg1: opaque, arg2: opaque, arg3: opaque): opaque;
@wasm_import("env", "call0")
fn call0(this: opaque, f: opaque): opaque;
@wasm_import("env", "call1")
fn call1(this: opaque, f: opaque, arg1: opaque): opaque;
@wasm_import("env", "call2")
fn call2(this: opaque, f: opaque, arg1: opaque, arg2: opaque): opaque;
@wasm_import("env", "call3")
fn call3(this: opaque, f: opaque, arg1: opaque, arg2: opaque, arg3: opaque): opaque;
@wasm_import("env", "call4")
fn call4(this: opaque, f: opaque, arg1: opaque, arg2: opaque, arg3: opaque, arg4: opaque): opaque;
@wasm_import("env", "call5")
fn call5(this: opaque, f: opaque, arg1: opaque, arg2: opaque, arg3: opaque, arg4: opaque, arg5: opaque): opaque;
@wasm_import("env", "call6")
fn call6(this: opaque, f: opaque, arg1: opaque, arg2: opaque, arg3: opaque, arg4: opaque, arg5: opaque, arg6: opaque): opaque;
@wasm_import("env", "string")
fn string(s: [*]u8, len: usize): opaque;
@wasm_import("env", "number")
fn number(n: u64): opaque;
@wasm_import("env", "numberf32")
fn numberf32(n: f32): opaque;
@wasm_import("env", "bool")
fn as_bool(n: bool): opaque;
@wasm_import("env", "int")
fn int(n: opaque): usize;
@wasm_import("env", "func")
fn func(f: fn(opaque): opaque): opaque;
@wasm_import("env", "debug")
fn debug(n: opaque);
@wasm_import("env", "debug2")
fn debug2(arg1: opaque, arg2: opaque);
@wasm_import("env", "debug8")
fn debug8(arg1: opaque, arg2: opaque, arg3: opaque, arg4: opaque, arg5: opaque, arg6: opaque, arg7: opaque, arg8: opaque);
@wasm_import("env", "debug10")
fn debug10(arg1: opaque, arg2: opaque, arg3: opaque, arg4: opaque, arg5: opaque, arg6: opaque, arg7: opaque, arg8: opaque, arg9: opaque, arg10: opaque);