williams has asked for the wisdom of the Perl Monks concerning the following question:
I'd much rather the XS compiler somehow automate all of this repetition, given something more along these lines.bool SmartPtr::isValid() CODE: RETVAL=(*THIS)->isValid(); OUTPUT: RETVAL const char *name SmartPtr::name() CODE: RETVAL=(*THIS)->name(); OUTPUT: RETVAL
Is there some sneaky XS directive or typemap game that will get me there with minimal fuss? The best alternative I can come up with is to write an xsubpppp.bool SmartPtr::isValid() const char * SmartPtr::name()
Thanks,
Jim
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using XS To Wrap A C++ Smart Pointer
by tsee (Curate) on Sep 28, 2009 at 21:09 UTC | |
Re: Using XS To Wrap A C++ Smart Pointer
by Anonymous Monk on Sep 28, 2009 at 23:25 UTC | |
Re: Using XS To Wrap A C++ Smart Pointer
by williams (Beadle) on Sep 29, 2009 at 18:39 UTC |