Last active
August 29, 2015 14:23
-
-
Save hosackm/070bde25dc0788c6738c to your computer and use it in GitHub Desktop.
How to compile ffi object
This file contains hidden or 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() | |
with open('supercool.h', 'r') as f: | |
ffi.cdef(f.read()) | |
ffi.set_source('supercool', None) | |
ffi.compile() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment