Skip to content

Instantly share code, notes, and snippets.

@plicease
Last active August 29, 2015 14:18
Show Gist options
  • Save plicease/a9d4c421a87847f43761 to your computer and use it in GitHub Desktop.
Save plicease/a9d4c421a87847f43761 to your computer and use it in GitHub Desktop.
FFI::Platypus example
use FFI::Platypus;
my $ffi = FFI::Platypus( lib => 'libm.so' );
$ffi->attach( fdim => [ 'double', 'double' ] => 'double' );
say fdim(7.0, 2.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment