[Go] Add goargout typemap.

This commit is contained in:
Ian Lance Taylor 2014-09-09 11:28:04 -07:00
commit acaaa0f31f
6 changed files with 286 additions and 44 deletions

View file

@ -225,13 +225,13 @@
%{ $1 = *($&1_ltype)&$input; %}
%typemap(out) SWIGTYPE *
%{ *($&1_ltype)&$result = $1; %}
%{ *($&1_ltype)&$result = ($1_ltype)$1; %}
%typemap(directorin) SWIGTYPE *
%{ $input = ($1_ltype)$1; %}
%{ *($&1_ltype)&$input = ($1_ltype)$1; %}
%typemap(directorout) SWIGTYPE *
%{ $result = ($1_ltype)$input; %}
%{ $result = *($&1_ltype)&$input; %}
%apply SWIGTYPE * { SWIGTYPE *const }