From: John Lenz <lenz@cs...> - 2006-05-29 17:17:24
Sohail Somani wrote:
> My problems now seem to amount to the following question:
> How do I get SWIG to portably bring in a language specific version of
> SWIG_FromCharPtr? Does this make sense?
I assume you want to use FromCharPtr in a custom typemap you are
writing? If that is the case, you can just use the use
SWIG_FromCharPtr, and declare that your typemap depends on the
FromCharPtr fragment. SWIG will then include whichever fragment into
the generated wrapper file.
%typemap(in, fragment="SWIG_FromCharPtrAndSize") ...
See the comments at the top of Lib/typemaps/fragments.i for more info.