Skip to content

Future work: Introducing a dsl for FFI instead of abusing attributes #3618

@bobzhang

Description

@bobzhang

basic

external%bs sum : int -> int -> int = "sum"
external%bs bark : string -> unit = "-> bark"
external%bs get : int array -> int -> int = " [ ] "
external%bs set : int array -> int -> int -> int = "  [ ] <- "

similar projects: https://github.com/fdopen/ppx_cstubs

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleOld issues that went stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions