Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: xs modifying passed value

by bulk88 (Priest)
on Nov 17, 2012 at 22:55 UTC ( #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
Node Status?
node history
Node Type: note [id://1004357]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (13)
As of 2014-07-10 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (214 votes), past polls