Strip C comments from the java typemaps when determining to use the premature garbage collection prevention parameter

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9984 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-10-12 21:41:27 +00:00
parent fd851b9380
commit 26c0f42887
2 changed files with 22 additions and 0 deletions

View File

@ -25,6 +25,8 @@ public class java_pgcpp_runme {
java_pgcppJNI.function(ptr, object, ptr, object, ptr, object, ptr, object, ptr, object);
java_pgcppJNI.functionconst(ptr, object, ptr, object, ptr, object, ptr, object, ptr, object);
java_pgcppJNI.comment_in_typemaps(ptr, object, ptr, object, ptr, object);
}
}

View File

@ -34,3 +34,23 @@ namespace Space {
}
%}
%typemap(jtype) Klassic *k1 "/*a*/ long /*b*/ /*c*/"
%typemap(jstype) Klassic *k1 "/*a*/ Classic/*b*/ /*c*/"
%typemap(jtype) Klassic *k2 "/*d*/ long"
%typemap(jstype) Klassic *k2 "/*d*/ Classic"
%typemap(jtype) Klassic *k3 "long/*e*/ "
%typemap(jstype) Klassic *k3 "Classic/*e*/ "
%typemap(javain) Klassic * "Classic.getCPtr($javainput)"
%{
typedef Space::Classic Klassic;
%}
%inline %{
void comment_in_typemaps(Klassic *k1, Klassic *k2, Klassic *k3) {}
%}