Skip to content

Instantly share code, notes, and snippets.

@nickdarnell
Created March 28, 2015 13:04
Show Gist options
  • Save nickdarnell/75f6fef960a6f2b58b07 to your computer and use it in GitHub Desktop.
Save nickdarnell/75f6fef960a6f2b58b07 to your computer and use it in GitHub Desktop.
%typemap(ctype) char** "char**"
%typemap(imtype) char** "string[]"
%typemap(cstype) char** "string[]"
%typemap(csin) char** "$csinput"
%typemap(csout, excode=SWIGEXCODE) char**, const char**& {
int ret = $imcall;$excode
return ret;
}
%typemap(csvarin, excode=SWIGEXCODE2) char** %{
set {
$imcall;$excode
} %}
%typemap(csvarout, excode=SWIGEXCODE2) char** %{
get {
int ret = $imcall;$excode
return ret;
} %}
%typemap(in) char** %{ $1 = $input; %}
%typemap(out) char** %{ $result = $1; %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment