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