Fix Java directorin typemap example
This commit is contained in:
parent
eeb1c6f466
commit
6ec243c093
1 changed files with 2 additions and 2 deletions
|
|
@ -6491,14 +6491,14 @@ A typemap for C character strings is:
|
||||||
|
|
||||||
<div class="code">
|
<div class="code">
|
||||||
<pre>
|
<pre>
|
||||||
%typemap(directorin, descriptor="Ljava/lang/String;", noblock=1) char * %{
|
%typemap(directorin, descriptor="Ljava/lang/String;", noblock=1) char * {
|
||||||
$input = 0;
|
$input = 0;
|
||||||
if ($1) {
|
if ($1) {
|
||||||
$input = JCALL1(NewStringUTF, jenv, (const char *)$1);
|
$input = JCALL1(NewStringUTF, jenv, (const char *)$1);
|
||||||
if (!$input) return $null;
|
if (!$input) return $null;
|
||||||
}
|
}
|
||||||
Swig::LocalRefGuard $1_refguard(jenv, $input);
|
Swig::LocalRefGuard $1_refguard(jenv, $input);
|
||||||
%}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue