What about using the various language specific preprocessor defines?:




On 27 July 2012 09:35, AlBor <dsbalbor@gmail.com> wrote:

Hello swig users!

I made some simple wrapping for C# and want to do the same for Java. I have
a set of wrapping rules (%defines) that include typemaps. Is it possible to
create some generic rule that would apply different typemaps according to
target language? For instance:
%typemap(ctype) CLASS ...
if (C# target)
  %typemap(cscode) ...
elseif(Java target)
  %typemap(javacode) ...

and apply this WRAP_RULE for C++ classes where necessary.
Or probably somebody may share some approaches of how to separate wrapping
logics and language specifics?

Thanks in advance,
View this message in context: http://old.nabble.com/One-file-for-different-target-languages-tp34219501p34219501.html
Sent from the swig-user mailing list archive at Nabble.com.

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Swig-user mailing list