From 254582c00040609f7012fa4c2e0b26b289fe3842 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Fri, 4 Aug 2023 09:42:02 +0200 Subject: [PATCH] doc: link to FFI examples --- doc/dev/ffi.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/dev/ffi.md b/doc/dev/ffi.md index 3c6329db25..a39acd1299 100644 --- a/doc/dev/ffi.md +++ b/doc/dev/ffi.md @@ -11,6 +11,8 @@ There are two primary attributes for interoperating with other languages: It can also be used with `def` to provide an internal definition, but ensuring consistency of both definitions is up to the user. * `@[export sym] def leanSym : ...` exports `leanSym` under the unmangled symbol name `sym`. +For simple examples of how to call foreign code from Lean and vice versa, see and , respectively. + ## The Lean ABI The Lean Application Binary Interface (ABI) describes how the signature of a Lean declaration is encoded as a native calling convention.