Skip to content

Commit

Permalink
Runtime: add stub for caml_sys_is_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Mar 4, 2024
1 parent 4e1fa99 commit 7305847
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runtime/wasm/fs.wat
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,13 @@

(func (export "caml_fs_init") (result (ref eq))
(ref.i31 (i32.const 0)))

(data $caml_sys_is_directory "caml_sys_is_directory")

(func (export "caml_sys_is_directory") (param (ref eq)) (result (ref eq))
;; ZZZ
(call $log_str
(array.new_data $string $caml_sys_is_directory
(i32.const 0) (i32.const 21)))
(ref.i31 (i32.const 0)))
)

0 comments on commit 7305847

Please sign in to comment.