Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: xs modifying passed value

by bulk88 (Priest)
on Nov 17, 2012 at 22:55 UTC ( [id://1004357]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    int 
    MyLib::strToInt(passfailSV)
    ...
        SvSetMagicSV(passfailSV, passfail ? &PL_sv_yes : &PL_sv_no);
    OUTPUT:
        RETVAL
    
  2. or download this
    T_BOOL
        $arg = boolSV($var);
    
  3. or download this
    /*
    =for apidoc Am|SV *|boolSV|bool b
    ...
    */
    
    #define boolSV(b) ((b) ? &PL_sv_yes : &PL_sv_no)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found