in reply to XS and C++: keep it simple and use pointers
in thread Writing XS frontends to C++ libraries.
Thanks, that's helped a lot :)
Unfortunately, however, some of the methods return objects, rather than pointers to objects; or take arguments in the same way - so still give errors as above.
Currently I have lines like these for each object in my typemap:
Which, looking at it, seems very wrong. IIrc, O_OBJECT is for pointers to objects, not objects. Is there an equivalent to O_OBJECT for objects themselves, or will this require a specialised typemap?MySettings O_OBJECT MYSettings * O_OBJECT
|
---|
In Section
Seekers of Perl Wisdom