X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=xs-src%2FMouseUtil.xs;fp=xs-src%2FMouseUtil.xs;h=3c02d18c8e13e523d8f49dc34078e53d0cd8fb4d;hp=fad81d0575059ae38d5c256ad1bf1aa9b677e04d;hb=fa4ac6485baa33fc2e12f9a9924ff428b0403fa5;hpb=c2168931940aa681120ba25c60658fe33c42cc1d diff --git a/xs-src/MouseUtil.xs b/xs-src/MouseUtil.xs index fad81d0..3c02d18 100644 --- a/xs-src/MouseUtil.xs +++ b/xs-src/MouseUtil.xs @@ -176,11 +176,13 @@ mouse_is_class_loaded(pTHX_ SV * const klass){ GV* const gv = (GV*)HeVAL(he); if(isGV(gv)){ - if(GvCVu(gv)){ + if(GvCVu(gv)){ /* is GV and has CV */ + hv_iterinit(stash); /* reset */ return TRUE; } } - else if(SvOK(gv)){ + else if(SvOK(gv)){ /* is a stub or constant */ + hv_iterinit(stash); /* reset */ return TRUE; } }