Class-Load-XS

 view release on metacpan or  search on metacpan

XS.xs  view on Meta::CPAN

BOOT:
    prehash_keys(aTHX);

void
is_class_loaded(klass, options=NULL)
    SV *klass
    HV *options
    PREINIT:
        HV *stash;
        bool found_method = FALSE;
    PPCODE:
        SvGETMAGIC(klass);
        if (!(SvPOKp(klass) && SvCUR(klass))) { /* XXX: SvPOK does not work with magical scalars */
            XSRETURN_NO;
        }

        stash = gv_stashsv(klass, 0);
        if (!stash) {
            XSRETURN_NO;
        }



( run in 0.851 second using v1.01-cache-2.11-cpan-71847e10f99 )