Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
[choroba]: airport needs a lot of space
[choroba]: it's usually easier to find space outside a city

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-02-23 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (346 votes). Check out past polls.