Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Inline::C-Cookbook's "Object Oriented Inline"

by sfink (Deacon)
on Sep 05, 2007 at 20:20 UTC ( #637251=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       obj_ref = sv_setref_pv(newSViv(0), class, (void *)soldier);
       SvREADONLY_on(SvRV(obj_ref));
       return obj_ref;
    
  2. or download this
      SV* obj = newSViv((IV)soldier);
      SV* obj_ref = newRV_noinc(obj);
      sv_bless(obj_ref, gv_stashpv(class, TRUE));
      SvREADONLY_on(obj);
      return obj_ref;
    
  3. or download this
       obj_ref = sv_setref_pv(newSV(0), class, (void *)soldier);
       SvREADONLY_on(SvRV(obj_ref));
       return obj_ref;
    
  4. or download this
    GrNode *                T_GR_NODE
    
    ...
    OUTPUT
    T_GR_NODE
            $arg = $var ? wrap("Rx::DOM::Node", $var) : &PL_sv_undef;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://637251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2022-10-06 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?