Debian Codegraph @

README

raw
1 NAME
2
3 Devel::CallChecker - custom op checking attached to subroutines
4
5 DESCRIPTION
6
7 This module makes some new features of the Perl 5.14.0 C API available to
8 XS modules running on older versions of Perl. The features are centred
9 around the function "cv_set_call_checker", which allows XS code to attach
10 a magical annotation to a Perl subroutine, resulting in resolvable calls
11 to that subroutine being mutated at compile time by arbitrary C code.
12 This module makes "cv_set_call_checker" and several supporting functions
13 available. (It is possible to achieve the effect of "cv_set_call_checker"
14 from XS code on much earlier Perl versions, but it is painful to achieve
15 without the centralised facility.)
16
17 This module provides the implementation of the functions at runtime
18 (on Perls where they are not provided by the core). It also, at compile
19 time, supplies the C header file and link library which provide access to
20 the functions. In normal use, callchecker0_h and callchecker_linkable
21 should be called at build time (not authoring time) for the module that
22 wishes to use the C functions.
23
24 The purpose of this module is specifically to provide the Perl 5.14.0
25 version of the "cv_set_call_checker" API to earlier Perl versions where
26 the core doesn't have "cv_set_call_checker" at all. This module does not
27 attempt to backport later refinements of the "cv_set_call_checker" API.
28 Thus an XS module that uses this module can be sure of having at least
29 the Perl 5.14.0 version of "cv_set_call_checker" available, regardless
30 of which Perl version it is running on, but cannot be sure of having
31 any more refined version of the API available. Such a module will have
32 access to the core's version of the API as normal on Perl versions where
33 the core supplies it, and is free to use the ordinary mechanisms of Perl
34 version portability to manage the differences between versions of the API.
35
36 INSTALLATION
37
38 perl Build.PL
39 ./Build
40 ./Build test
41 ./Build install
42
43 AUTHOR
44
45 Andrew Main (Zefram) <[email protected]>
46
47 COPYRIGHT
48
49 Copyright (C) 2011, 2012, 2013, 2015, 2017, 2023
50 Andrew Main (Zefram) <[email protected]>
51
52 LICENSE
53
54 This module is free software; you can redistribute it and/or modify it
55 under the same terms as Perl itself.