AI-TensorFlow-Libtensorflow
view release on metacpan or search on metacpan
maint/process-capi.pl view on Meta::CPAN
12345678910111213141516171819#!/usr/bin/env perl
# PODNAME: gen-capi-docs
# ABSTRACT: Generates POD for C API docs
use
strict;
use
warnings;
use
FindBin;
package
TF::CAPI::Extract {
maint/process-capi.pl view on Meta::CPAN
331332333334335336337338339340341342343344345346347348349350
ro
_attached_functions
=> (
default
=>
sub
{ {} } );
around
attach
=>
sub
{
my
(
$orig
,
$self
,
$name
) =
@_
;
my
$real_name
;
wrap
'FFI::Platypus::DL::dlsym'
,
post
=>
sub
{
$real_name
=
$_
[1]
if
$_
[-1] };
my
$ret
= uplevel 3,
$orig
,
@_
[1..
$#_
];
push
$self
->_attached_functions->{
$real_name
}->@*, {
c
=>
$real_name
,
package
=> (
caller
(2))[0],
perl
=>
ref
(
$name
) ?
$name
->[1] :
$name
,
args
=>
$_
[3],
return
=>
$_
[4],
};
$ret
;
}
}
TF::CAPI::Extract->new_with_options->run;
( run in 0.369 second using v1.01-cache-2.11-cpan-95122f20152 )