- 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);
}
- or download this
sv_setsv(SvRV(svrep.sv), Nullsv);
- or download this
RETVAL = newRV_inc(lobj);
- or download this
RETVAL = SvOK(SvRV(lobj));
- or download this
TYPEMAP
PClass* CPP_OBJECT
...
INPUT
CPP_OBJECT
$var = ($type) SvIV(SvRV((SV*)SvRV($arg)));
- or download this
bool
PClass::some_func()
...
RETVAL = THIS->someCppFunc();
OUTPUT:
RETVAL