expand build_ffi helper function
3 files changed