globalin and memberin typemaps for dimensionless arrays

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4836 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-06-01 13:54:59 +00:00
commit 558602a355

View file

@ -375,6 +375,12 @@
/* Default array handling */
%typemap(in) SWIGTYPE [] %{ $1 = *($&1_ltype)&$input; %}
%typemap(out) SWIGTYPE [] %{ *($&1_ltype)&$result = $1; %}
%typemap(globalin) SWIGTYPE [] {
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Variable $name is read-only.");
}
%typemap(memberin) SWIGTYPE [] {
SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Variable $name is read-only.");
}
/* char[ANY] - treat as String */
%typemap(in) char[ANY] {