Sign in

    c

    FFI Binding to C

    Download zip
    Version
    0.1.13
    License
    Apache-2.0
    Last updated
    last year
    Downloads
    10K

    #tonyfettes/c

    FFI Binding to C.

    #Usage

    1. Add this library using moon add:

      moon add tonyfettes/c

    2. Import the library in your moon.pkg.json:

      { "import": [ "tonyfettes/c" ] }

    3. Insert the following code somewhere in your MoonBit code:

      fn init {
      ignore(@c.moonbit_ffi_make_closure)
      }

      This prevents the closure help function from being eliminated by the MoonBit compiler.

    4. Use the library in your code.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io