By the way, *result = r; is wrong. You're writing to unallocated memory. You need to allocate a rect first, and place a pointer to it in result. That also means the code calling your function will have to free it, which makes it wholly inappropriate for an XS function to return this.
Sorry, don't know how to call C++ code from C, so I can't help you more than that.
In reply to Re: returning an object in XS
by ikegami
in thread returning an object in XS
by bipham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |