parent
b819363117
commit
0c0b93f8e0
3 changed files with 53 additions and 9 deletions
|
|
@ -120,15 +120,6 @@ type GoRetStruct struct {
|
|||
$1.assign(tmp->p, tmp->p + tmp->n);
|
||||
}
|
||||
|
||||
%typemap(directorin) std::string * (_gostring_ temp) {
|
||||
$input = &temp;
|
||||
$input->p = (char *) $1->data();
|
||||
$input->n = $1->size();
|
||||
}
|
||||
%typemap(directorargout) std::string * {
|
||||
$1->assign($input->p, $input->p + $input->n);
|
||||
}
|
||||
|
||||
%feature("director") MyClass;
|
||||
|
||||
%inline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue