Skip to content

Instantly share code, notes, and snippets.

@hosackm
Last active August 29, 2015 14:23
Show Gist options
  • Save hosackm/070bde25dc0788c6738c to your computer and use it in GitHub Desktop.
Save hosackm/070bde25dc0788c6738c to your computer and use it in GitHub Desktop.
How to compile ffi object
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