可帮助XS模块在旧版Perl上使用Perl 5.14.0 C API新特性,核心提供cv_set_call_checker等函数,支持在编译时通过C代码变异子程序调用,同时提供运行时实现和编译时头文件。【此简介由AI生成】
NAME
Devel::CallChecker - custom op checking attached to subroutines
DESCRIPTION
This module makes some new features of the Perl 5.14.0 C API available to XS modules running on older versions of Perl. The features are centred around the function "cv_set_call_checker", which allows XS code to attach a magical annotation to a Perl subroutine, resulting in resolvable calls to that subroutine being mutated at compile time by arbitrary C code. This module makes "cv_set_call_checker" and several supporting functions available. (It is possible to achieve the effect of "cv_set_call_checker" from XS code on much earlier Perl versions, but it is painful to achieve without the centralised facility.)
This module provides the implementation of the functions at runtime (on Perls where they are not provided by the core), and also at compile time supplies the C header file which provides access to the functions.
INSTALLATION
perl Build.PL
./Build
./Build test
./Build install
AUTHOR
Andrew Main (Zefram) zefram@fysh.org
COPYRIGHT
Copyright (C) 2011, 2012, 2013, 2015, 2017 Andrew Main (Zefram) zefram@fysh.org
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Introduction
可帮助XS模块在旧版Perl上使用Perl 5.14.0 C API新特性,核心提供cv_set_call_checker等函数,支持在编译时通过C代码变异子程序调用,同时提供运行时实现和编译时头文件。【此简介由AI生成】
Customize your domain