Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Inline::C - object accessor failure

by robin (Chaplain)
on Oct 26, 2005 at 16:55 UTC ( [id://503113] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Inline 'C' => <<CEND;
    SV* x (HV* self) {
    ...
      return (x_ref ? *x_ref : &PL_sv_undef);
    }
    CEND
    
  2. or download this
    Attempt to free temp prematurely: SV 0x816f1c4.
    Attempt to free unreferenced scalar: SV 0x816f1c4.
    
  3. or download this
    use Inline 'C' => <<CEND;
    void x (HV* self) {
      SV** x_ref = hv_fetch( self, "x", 1, 0 );
    ...
      Inline_Stack_Done;
    }
    CEND