Last active
August 29, 2015 14:23
-
-
Save hosackm/134f16f4e49668c22c4e to your computer and use it in GitHub Desktop.
Blog post to show loading dll in CFFI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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