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)