2
2
3
3
4
4
5
- external xx : string -> unit = " " [@@ bs.module "x" , "X" ]
5
+ external xx : string -> unit = " xx " [@@ bs.module "x" , "X" ]
6
6
7
7
type param
8
8
9
- external executeCommands : string -> param array -> unit = " "
9
+ external executeCommands : string -> param array -> unit = " executeCommands "
10
10
[@@ bs.scope "commands" ] [@@ bs.module "vscode" ][@@ bs.splice]
11
11
12
- external env : string Js.Dict .t = " " [@@ bs.scope "process" ] [@@ bs.val]
12
+ external env : string Js.Dict .t = " env " [@@ bs.scope "process" ] [@@ bs.val]
13
13
14
14
let f a b c =
15
15
executeCommands " hi" [|a;b;c|];
16
16
env
17
17
18
- external hi : string = " "
18
+ external hi : string = " hi "
19
19
[@@ bs.module "z" ] [@@ bs.scope "a0" , "a1" , "a2" ]
20
- external ho : string = " "
20
+ external ho : string = " ho "
21
21
[@@ bs.val] [@@ bs.scope "a0" ,"a1" ,"a2" ]
22
- external imul : int -> int -> int = " "
22
+ external imul : int -> int -> int = " imul "
23
23
[@@ bs.val] [@@ bs.scope "Math" ]
24
24
let f2 () =
25
25
hi , ho, imul 1 2
@@ -35,16 +35,16 @@ external makeBuffer1 : int -> buffer = "Buffer"
35
35
external makeBuffer2 : int -> buffer = " Buffer"
36
36
[@@ bs.new ] [@@ bs.scope "global" , "a0" ,"a1" ,"a2" ] [@@ bs.module "X" ,"ZZ" ]
37
37
38
- external makeBuffer3 : int -> buffer = " "
38
+ external makeBuffer3 : int -> buffer = " makeBuffer3 "
39
39
[@@ bs.new ] [@@ bs.scope "global" , "a0" ,"a1" ,"a2" ] [@@ bs.module "X" , "Z" ]
40
40
41
- external max : float -> float -> float = " "
41
+ external max : float -> float -> float = " max "
42
42
[@@ bs.scope "Math" ] [@@ bs.val]
43
43
(* TODO: `bs.val` is not necessary, by default is good?
44
44
*)
45
45
46
46
type t
47
- external create : unit -> t = " " [@@ bs.scope "mat4" ] [@@ bs.module "gl-matrix" ]
47
+ external create : unit -> t = " create " [@@ bs.scope "mat4" ] [@@ bs.module "gl-matrix" ]
48
48
49
49
50
50
(* external scope_f : t -> int = "" [@@bs.get] [@@bs.scope "hi"]*)
@@ -67,39 +67,39 @@ external setMocFn2 : t -> int -> string -> unit = ""
67
67
external setMocFn3 : t -> int -> string -> unit = " "
68
68
[@@ bs.set_index] [@@ bs.scope "a0" , "a1" , "a2" ]
69
69
70
- external getX1 : t -> int = " "
70
+ external getX1 : t -> int = " getX1 "
71
71
[@@ bs.get] [@@ bs.scope "a0" ]
72
72
73
- external getX2 : t -> int = " "
73
+ external getX2 : t -> int = " getX2 "
74
74
[@@ bs.get] [@@ bs.scope "a0" , "a1" ]
75
75
76
- external getX3 : t -> int = " "
76
+ external getX3 : t -> int = " getX3 "
77
77
[@@ bs.get] [@@ bs.scope "a0" , "a1" , "a2" ]
78
78
79
- external setX1 : t -> int -> unit = " "
79
+ external setX1 : t -> int -> unit = " setX1 "
80
80
[@@ bs.set] [@@ bs.scope "a0" ]
81
81
82
- external setX2 : t -> int -> unit = " "
82
+ external setX2 : t -> int -> unit = " setX2 "
83
83
[@@ bs.set] [@@ bs.scope "a0" , "a1" ]
84
84
85
- external setX3 : t -> int -> unit = " "
85
+ external setX3 : t -> int -> unit = " setX3 "
86
86
[@@ bs.set] [@@ bs.scope "a0" ,"a1" ,"a2" ]
87
87
88
- external setXWeird3 : t -> int -> unit = " "
88
+ external setXWeird3 : t -> int -> unit = " setXWeird3 "
89
89
[@@ bs.set] [@@ bs.scope "a0-hi" ,"a1" ,"a2" ]
90
90
91
- external send1 : t -> int -> unit = " "
91
+ external send1 : t -> int -> unit = " send1 "
92
92
[@@ bs.send] [@@ bs.scope "a0" ]
93
- external send2 : t -> int -> unit = " "
93
+ external send2 : t -> int -> unit = " send2 "
94
94
[@@ bs.send] [@@ bs.scope "a0" ,"a1" ]
95
- external send3 : t -> int -> unit = " "
95
+ external send3 : t -> int -> unit = " send3 "
96
96
[@@ bs.send] [@@ bs.scope "a0" ,"a1" ]
97
97
98
- external psend1 : int -> unit = " "
98
+ external psend1 : int -> unit = " psend1 "
99
99
[@@ bs.send.pipe:t] [@@ bs.scope "a0" ]
100
- external psend2 : int -> unit = " "
100
+ external psend2 : int -> unit = " psend2 "
101
101
[@@ bs.send.pipe:t] [@@ bs.scope "a0" ,"a1" ]
102
- external psend3 : int -> unit = " "
102
+ external psend3 : int -> unit = " psend3 "
103
103
[@@ bs.send.pipe:t] [@@ bs.scope "a0" ,"a1" ]
104
104
105
105
let f3 x =
0 commit comments