sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
FFI::StructLayout::Function#put
Set a {Function} to memory pointed by +pointer+ as a function.
If a Proc is submitted as +proc+, it is automatically transformed to a {Function}.Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/ffi-1.11.3/ext/ffi_c/StructLayout.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-FFI--StructLayout--Function-put-for-pr
# Commit to gitgit add app/server/ruby/vendor/ffi-1.11.3/ext/ffi_c/StructLayout.cgit commit -m "better docs for FFI::StructLayout::Function#put"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-FFI--StructLayout--Function-put-for-pr
hub pull-request
# Celebrate!