Hi,
I am passing a const wchar_t* from a function MyFunc() in my XS file.
I have a custom typemap for const wchar_t* :
const wchar_t * T_WCHAR
INPUT
T_WCHAR
$var = ($type)SvPV_nolen($arg)
OUTPUT
T_WCHAR
sv_setpv((SV*)$arg, (char *) $var, wcslen($var)*sizeof($type));
Manisha Mirajkar [EMAIL PROTECTED] writes:
Hi,
I am passing a const wchar_t* from a function MyFunc() in my XS file.
I have a custom typemap for const wchar_t* :
const wchar_t * T_WCHAR
INPUT
T_WCHAR
$var = ($type)SvPV_nolen($arg)
OUTPUT
T_WCHAR
sv_setpv((SV*)$arg,