Debian Codegraph @

lib/FFI/Build/PluginData.pm

raw
1 package FFI::Build::PluginData;
2
3 use strict;
4 use warnings;
5 use parent qw( Exporter );
6
7 our @EXPORT_OK = qw( plugin_data );
8
9 # ABSTRACT: Platform and local customizations of FFI::Build
10 our $VERSION = '2.12'; # VERSION
11
12
13 sub plugin_data
14 {
15 my($self) = @_;
16 my $caller = caller;
17 if($caller =~ /^FFI::Build::Plugin::(.*)$/)
18 {
19 return $self->{plugin_data}->{$1} ||= {};
20 }
21 else
22 {
23 require Carp;
24 Carp::croak("plugin_data must be called by a plugin");
25 }
26 }
27
28 1;
29
30 __END__
31
32 =pod
33
34 =encoding UTF-8
35
36 =head1 NAME
37
38 FFI::Build::PluginData - Platform and local customizations of FFI::Build
39
40 =head1 VERSION
41
42 version 2.12
43
44 =head1 SYNOPSIS
45
46 perldoc FFI::Build
47
48 =head1 DESCRIPTION
49
50 This class is experimental, but may do something useful in the future.
51
52 =head1 SEE ALSO
53
54 =over 4
55
56 =item L<FFI::Platypus>
57
58 =item L<FFI::Build>
59
60 =back
61
62 =head1 AUTHOR
63
64 Author: Graham Ollis E<lt>[email protected]<gt>
65
66 Contributors:
67
68 Bakkiaraj Murugesan (bakkiaraj)
69
70 Dylan Cali (calid)
71
72 pipcet
73
74 Zaki Mughal (zmughal)
75
76 Fitz Elliott (felliott)
77
78 Vickenty Fesunov (vyf)
79
80 Gregor Herrmann (gregoa)
81
82 Shlomi Fish (shlomif)
83
84 Damyan Ivanov
85
86 Ilya Pavlov (Ilya33)
87
88 Petr Písař (ppisar)
89
90 Mohammad S Anwar (MANWAR)
91
92 Håkon Hægland (hakonhagland, HAKONH)
93
94 Meredith (merrilymeredith, MHOWARD)
95
96 Diab Jerius (DJERIUS)
97
98 Eric Brine (IKEGAMI)
99
100 szTheory
101
102 José Joaquín Atria (JJATRIA)
103
104 Pete Houston (openstrike, HOUSTON)
105
106 Lukas Mai (MAUKE)
107
108 =head1 COPYRIGHT AND LICENSE
109
110 This software is copyright (c) 2015-2022 by Graham Ollis.
111
112 This is free software; you can redistribute it and/or modify it under
113 the same terms as the Perl 5 programming language system itself.
114
115 =cut