| tcc_bind | R Documentation |
Define symbols with Bun-style type specifications for API mode. This is the core of the declarative FFI API.
tcc_bind(ffi, ...)
ffi |
A tcc_ffi object |
... |
Named list of symbol definitions. Each definition is a list with:
Callback arguments should use the form |
Updated tcc_ffi object (for chaining)
ffi <- tcc_ffi() |>
tcc_bind(
add = list(args = list("i32", "i32"), returns = "i32"),
greet = list(args = list("cstring"), returns = "cstring")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.