consistent directout typemaps for all languages - $result used instead of $1 in C# and Java now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e4c0410ebc
commit
3c24cacfbd
14 changed files with 46 additions and 48 deletions
|
|
@ -42,7 +42,7 @@ class string;
|
|||
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
|
||||
return $null;
|
||||
}
|
||||
$1 = std::string($input); %}
|
||||
$result = std::string($input); %}
|
||||
|
||||
%typemap(directorin) string %{ $input = SWIG_csharp_string_callback($1.c_str()); %}
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ class string;
|
|||
}
|
||||
/* possible thread/reentrant code problem */
|
||||
static std::string $1_str($input);
|
||||
$1 = &$1_str; %}
|
||||
$result = &$1_str; %}
|
||||
|
||||
%typemap(directorin) const string & %{ $input = SWIG_csharp_string_callback($1.c_str()); %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue