calling XS(function) from C

P

Penguinista

I'm embeding perl in a C program and using swig to generate an
interface. One of the generated functions is XS(boot_module) to
initialize the extension functions in perl, and intended to be called
from perl in a module bootstrap operation. In my case I want to call it
from C code. I've gotten a kludge that to works on my system, but
breaks on a different system. Is there a 'proper' way to make this call?
 
I

Ilya Zakharevich

[A complimentary Cc of this posting was sent to
Penguinista
I'm embeding perl in a C program and using swig to generate an
interface. One of the generated functions is XS(boot_module) to
initialize the extension functions in perl, and intended to be called
from perl in a module bootstrap operation. In my case I want to call it
from C code. I've gotten a kludge that to works on my system, but
breaks on a different system. Is there a 'proper' way to make this call?

Did you look how XSLoader does it?

Yours,
Ilya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top