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:
parent
53ef3e4ac7
commit
558602a355
1 changed files with 6 additions and 0 deletions
|
|
@ -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] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue