update code in some places where api => 2 should be used
Graham Ollis authored 1 year, 6 months ago
Graham✈️✈️ committed 1 year, 6 months ago
2 | 2 |
use FFI::Platypus 2.00;
|
3 | 3 |
|
4 | 4 |
my $ffi = FFI::Platypus->new(
|
5 | |
api => 1,
|
|
5 |
api => 2,
|
6 | 6 |
lib => './array_reverse.so',
|
7 | 7 |
);
|
8 | 8 |
|
2 | 2 |
use FFI::Platypus 2.00;
|
3 | 3 |
|
4 | 4 |
my $ffi = FFI::Platypus->new(
|
5 | |
api => 1,
|
|
5 |
api => 2,
|
6 | 6 |
lib => './swap.so',
|
7 | 7 |
);
|
8 | 8 |
|
61 | 61 |
|
62 | 62 |
=head1 DESCRIPTION
|
63 | 63 |
|
64 | |
B<Note>: This document assumes that you are using C<api =E<gt> 1>,
|
|
64 |
B<Note>: This document assumes that you are using C<api =E<gt> 2>,
|
65 | 65 |
which you should be using for all new code.
|
66 | 66 |
|
67 | 67 |
This document describes how to define types using L<FFI::Platypus>.
|