Help for this page

Select Code to Download


  1. or download this
    SvOK_off(sv);
    SvIVX(sv) = 0;
    SvOBJECT_off(sv);
    
  2. or download this
    SV *sv = SvRV(obj);
    if (sv) {
    ...
        mg_free(sv); /* remove any magic */
        SvFLAGS(sv) = 0;  /* invalidate the sv */
    }
    
  3. or download this
    /* Clear the sv field so that there will be no dangling ptrs */
    if (it->sv) {
    ...
        sv_setiv(it->sv,0x4242);
        it->sv = NULL;
    }