Help for this page

Select Code to Download


  1. or download this
        /* The SV holding the pointer to the actual object is hidden away 
    +in the interpreter.  Users aren't supposed to be able to get at it. *
    +/
        SV* theObjRef = newSV(0);
    ...
            // If a "name".pm is in the @INC path, try to load it up.
            //        eval_pv(std::string(std::string("eval qq{ use ") + n
    +ame + "}").c_str(), true);
        }
    
  2. or download this
        sv_setsv(SvRV(svrep.sv), Nullsv);
    
  3. or download this
    RETVAL = newRV_inc(lobj);
    
  4. or download this
    RETVAL = SvOK(SvRV(lobj));
    
  5. or download this
    TYPEMAP
    PClass*                CPP_OBJECT
    ...
    INPUT
    CPP_OBJECT
         $var = ($type) SvIV(SvRV((SV*)SvRV($arg)));
    
  6. or download this
    bool
    PClass::some_func()
    ...
        RETVAL = THIS->someCppFunc();
        OUTPUT:
        RETVAL