8 check_method_cache_flag:
9 check the PL_sub_generation
10 ISA/method cache thing
13 Pass in a coderef, returns:
14 [ $pkg_name, $coderef_name ] ie:
18 MODULE = Class::MOP PACKAGE = Class::MOP
23 check_package_cache_flag(pkg)
26 RETVAL = newSViv(PL_sub_generation);
31 get_code_info(coderef)
37 if( SvOK(coderef) && SvROK(coderef) && SvTYPE(SvRV(coderef)) == SVt_PVCV){
38 coderef = SvRV(coderef);
39 name = GvNAME( CvGV(coderef) );
40 pkg = HvNAME( GvSTASH(CvGV(coderef)) );
43 PUSHs(newSVpvn(pkg, strlen(pkg)));
44 PUSHs(newSVpvn(name, strlen(name)));