%loadplugin{feature::default_xs_typemap};
%typemap{const std::string&}{parsed}
{
%precall_code
{%
std::string tmp(SvPV($PerlVar));
$Cvar = tmp;
%};
};
%typemap{const std::string}{parsed}
{
%precall_code
{%
std::string $Cvar(SvPV($PerlVar));
%};
};
%typemap{GenoEye::PosType}{simple}
{
%xs_type{T_IV};
};
%typemap{GenoEye::Page*}{parsed}
{
%precall_code
{%
IV tmp = SvIV(SvRV($PerlVar));
$CVar = INT2PTR(GenoEye::Page, tmp);
%};
%output_code
{%
$CVar->ref();
sv_setref_pv($PerlVar, "GenoEye::Page", $CVar)
%};
};
####
Could not find a typemap for C type 'const std::string'.
The following C types are mapped by the current typemap:
'AV *', 'Boolean', 'CV *', 'FILE *', 'FileHandle', 'GenoEye::Page *', 'GenoEye::PosType', 'HV *', 'I16', 'I32', 'I8', 'IV', 'InOutStream', 'InputStream', 'NV', 'OutputStream', 'PerlIO *', 'Result', 'STRLEN', 'SV *', 'SVREF', 'SysRet', 'SysRetLong', 'Time_t *', 'U16', 'U32', 'U8', 'UV', 'bool', 'bool_t', 'caddr_t', 'char', 'char *', 'char **', 'const char *', 'double', 'float', 'int', 'long', 'short', 'size_t', 'ssize_t', 'time_t', 'unsigned', 'unsigned char', 'unsigned char *', 'unsigned int', 'unsigned long', 'unsigned long *', 'unsigned short', 'void *', 'wchar_t', 'wchar_t *'
in /usr/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- --typemap=typemap.xsp GenoEye_Page.xsp, line 53
####
TYPEMAP: <