« Return to Thread: One file for different target languages
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:
%define WRAP_RULE(CLASS)
%typemap(ctype) CLASS ...
if (C# target)
%typemap(cscode) ...
elseif(Java target)
%typemap(javacode) ...
end
%enddef
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,
Alex.
--
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
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user
« Return to Thread: One file for different target languages
| Free embeddable forum powered by Nabble | Forum Help |