Package Info

perl-B-Hooks-OP-Annotation


annotate and delegate hooked OPs


Development/Libraries/Perl

This module provides a way for XS code that hijacks OP 'op_ppaddr' functions to delegate to (or restore) the previous functions, whether assigned by perl or by another module. Typically this should be used in conjunction with B::Hooks::OP::Check.

'B::Hooks::OP::Annotation' makes its types and functions available to XS code by means of ExtUtils::Depends. Modules that wish to use these exports in their XS code should 'use B::OP::Hooks::Annotation' in the Perl module that loads the XS, and include something like the following in their Makefile.PL:

use ExtUtils::MakeMaker;
use ExtUtils::Depends;

our %XS_PREREQUISITES = (
    'B::Hooks::OP::Annotation' => '0.44',
    'B::Hooks::OP::Check'      => '0.15',
);

our %XS_DEPENDENCIES = ExtUtils::Depends->new(
    'Your::XS::Module',
     keys(%XS_PREREQUISITES)
)->get_makefile_vars();

WriteMakefile(
    NAME          => 'Your::XS::Module',
    VERSION_FROM  => 'lib/Your/XS/Module.pm',
    PREREQ_PM => {
        'B::Hooks::EndOfScope' => '0.07',
        %XS_PREREQUISITES
    },
    ($ExtUtils::MakeMaker::VERSION >= 6.46 ?
        (META_MERGE => {
            configure_requires => {
                'ExtUtils::Depends' => '0.301',
                %XS_PREREQUISITES
            }})
        : ()
    ),
    %XS_DEPENDENCIES,

);

License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/B-Hooks-OP-Annotation/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.44-bp156.3.2 info GA Release 2023-12-07 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation
0.44-bp155.2.10 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation
0.44-bp154.1.22 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation
0.44-bp153.1.14 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation
0.44-bp152.3.13 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation
0.44-bp151.3.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • perl-B-Hooks-OP-Annotation
0.44-bp151.2.11 info GA Release 2019-05-18 15 SP1
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation
0.44-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-B-Hooks-OP-Annotation