Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: perlcall for dummies

by RMGir (Prior)
on Sep 22, 2017 at 18:05 UTC ( [id://1199928]=note: print w/replies, xml ) Need Help??


in reply to perlcall for dummies

I haven't done anything with XS in years, so I may be missing something. But wouldn't the "C" processKey hide the "XS" processKey, depending on your link line order?

I see you're printing a trace in your C processKey, and in the perl process_key.

Have you tried adding a trace to the xs routine to make sure it's being invoked?


Mike

Replies are listed 'Best First'.
Re^2: perlcall for dummies
by frazap (Monk) on Sep 25, 2017 at 13:57 UTC
    Good idea: and it's not called. The suggestion of beech get me in the right direction.
      That works, but I'm betting that just deleting
      void processKey() { printf("processKey in C\n"); }
      would have worked, too - then your XS 'processKey' would have been called instead of this one.

      Mike

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1199928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found