}
STATIC SV *get_stashed_in_mg(pTHX_ SV *sv) {
- MAGIC *mg, *moremagic;
+ MAGIC *mg;
if (SvTYPE(sv) >= SVt_PVMG) {
for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) {
case CodeRef:
svt = SVt_PVCV;
break;
+ default:
+ croak("not a reftype %d\n", type);
}
return SvTYPE(SvRV(sv)) == svt;
case tc_cv:
return check_sv_cv(aTHX_ tc_check.sv, sv);
break;
+ case tc_enum:
+ croak("todo\n");
+ break;
}
croak("todo");