Revision history for Perl extension Class-MOP.
0.93
- * mop.c
- - Applied an MS VC++ compilation fix from Taro Nishino. RT #48072
-
* Class::MOP
- The load_class function just returns true, since it's return value was
confusing (either a metaclass object or a class name). It either loads
int
mop_get_code_info (SV *coderef, char **pkg, char **name)
{
- GV *gv;
-
if (!SvOK(coderef) || !SvROK(coderef) || SvTYPE(SvRV(coderef)) != SVt_PVCV) {
return 0;
}
*/
if ( isGV_with_GP(CvGV(coderef)) ) {
- gv = CvGV(coderef);
- *pkg = HvNAME( GvSTASH(gv) ? GvSTASH(gv) : CvSTASH(coderef) );
- *name = GvNAME( CvGV(coderef) );
+ GV *gv = CvGV(coderef);
+ *pkg = HvNAME( GvSTASH(gv) ? GvSTASH(gv) : CvSTASH(coderef) );
+ *name = GvNAME( CvGV(coderef) );
} else {
- *pkg = "__UNKNOWN__";
- *name = "__ANON__";
+ *pkg = "__UNKNOWN__";
+ *name = "__ANON__";
}
return 1;