ffi example (from official lake repository (leanprover/lean4))
This commit is contained in:
parent
57fb134506
commit
3183a106c5
6 changed files with 41 additions and 2 deletions
|
@ -1 +1,6 @@
|
|||
def hello := "world"
|
||||
@[extern "my_add"]
|
||||
opaque myAdd : UInt32 → UInt32 → UInt32
|
||||
|
||||
def hello := "world"
|
||||
|
||||
-- #eval myAdd 1 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue