ffi example (from official lake repository (leanprover/lean4))

This commit is contained in:
qwjyh 2024-10-25 16:47:35 +09:00
parent 57fb134506
commit 3183a106c5
6 changed files with 41 additions and 2 deletions

View file

@ -1 +1,6 @@
def hello := "world"
@[extern "my_add"]
opaque myAdd : UInt32 → UInt32 → UInt32
def hello := "world"
-- #eval myAdd 1 2