-
Notifications
You must be signed in to change notification settings - Fork 5
/
import.ml
30 lines (23 loc) · 1.32 KB
/
import.ml
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
external add_function_import :
Module.t -> string -> string -> string -> Type.t -> Type.t -> unit
= "caml_binaryen_add_function_import__bytecode" "caml_binaryen_add_function_import"
(** Module, internal name, external module name, external base name, params type, results type. *)
external add_table_import : Module.t -> string -> string -> string -> unit
= "caml_binaryen_add_table_import"
(** Module, internal name, external module name, external base name. *)
external add_memory_import :
Module.t -> string -> string -> string -> bool -> unit
= "caml_binaryen_add_memory_import"
(** Module, internal name, external module name, external base name, shared. *)
external add_global_import :
Module.t -> string -> string -> string -> Type.t -> bool -> unit
= "caml_binaryen_add_global_import__bytecode" "caml_binaryen_add_global_import"
(** Module, internal name, external module name, external base name, type, mutable. *)
external function_import_get_module : Function.t -> string
= "caml_binaryen_function_import_get_module"
external global_import_get_module : Global.t -> string
= "caml_binaryen_global_import_get_module"
external function_import_get_base : Function.t -> string
= "caml_binaryen_function_import_get_base"
external global_import_get_base : Global.t -> string
= "caml_binaryen_global_import_get_base"