Skip to content

Instantly share code, notes, and snippets.

@hosackm
Last active August 29, 2015 14:23
Show Gist options
  • Save hosackm/134f16f4e49668c22c4e to your computer and use it in GitHub Desktop.
Save hosackm/134f16f4e49668c22c4e to your computer and use it in GitHub Desktop.
Blog post to show loading dll in CFFI
from cffi import FFI
ffi = FFI()
ffi.cdef('...super cool header file contents...')
lib = ffi.dlopen('libsupercool.dylib')
#call a function from libsupercool
lib.MyCoolFunction(42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment