Fix bug 1606010 "[Doc] Typo in Typemaps.html"
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9614 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4f7099cb56
commit
2b9c9dd23b
1 changed files with 2 additions and 2 deletions
|
|
@ -2579,9 +2579,9 @@ For example, the "in" typemap for Perl and Ruby could be written as:
|
|||
|
||||
<div class="code"><pre>
|
||||
#if defined(SWIGPERL)
|
||||
%typemap(in) int "$1 = NUM2INT($input);"
|
||||
#elif defined(SWIGRUBY)
|
||||
%typemap(in) int "$1 = ($1_ltype) SvIV($input);"
|
||||
#elif defined(SWIGRUBY)
|
||||
%typemap(in) int "$1 = NUM2INT($input);"
|
||||
#else
|
||||
#warning no "in" typemap defined
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue