I'm trying to return an intptr_t type from some XS code:
intptr_t
my_func( self )
myObjPtr self
CODE:
RETVAL = (intptr_t) self;
OUTPUT:
RETVAL
My typemap doesn't have anything about intptr_t
, so of course dmake
fails with Could not find a typemap for C type 'intptr_t'.
I'm not sure if Perl even works with integers as big as intptr_t
can be. If there's no good way to return this to Perl as a number, I'll just stringify it.