Skip to content

Commit

Permalink
feat: add Function_table.unlimited constant (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 16, 2021
1 parent 61861e2 commit 0d2fcde
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/function_table.ml
Expand Up @@ -9,3 +9,5 @@ let set_function_table wasm_mod initial maximum funcnames offset =
inject (array (Array.of_list (List.map string funcnames)));
inject offset;
|]

let unlimited = -1
2 changes: 2 additions & 0 deletions src/function_table.ml
Expand Up @@ -2,3 +2,5 @@ external set_function_table :
Module.t -> int -> int -> string list -> Expression.t -> unit
= "caml_binaryen_set_function_table"
(** Module, initial size, maximum size, function names, offset. *)

let unlimited = -1
2 changes: 2 additions & 0 deletions virtual/function_table.mli
@@ -1,2 +1,4 @@
val set_function_table :
Module.t -> int -> int -> string list -> Expression.t -> unit

val unlimited : int

0 comments on commit 0d2fcde

Please sign in to comment.