Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
use Inline
|
||||
C => "DATA",
|
||||
ENABLE => "AUTOWRAP",
|
||||
LIBS => "-lm";
|
||||
|
||||
print 4*atan(1) . "\n";
|
||||
|
||||
__DATA__
|
||||
__C__
|
||||
double atan(double x);
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
use FFI::Platypus;
|
||||
my $ffi = FFI::Platypus->new;
|
||||
$ffi->lib(undef);
|
||||
$ffi->attach(puts => ['string'] => 'int');
|
||||
$ffi->attach(atan => ['double'] => 'double');
|
||||
|
||||
puts(4*atan(1));
|
||||
Loading…
Add table
Add a link
Reference in a new issue