fix typos and add more typecheck
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ded13eb949
commit
5a0269c3bf
1 changed files with 7 additions and 1 deletions
|
|
@ -50,7 +50,7 @@
|
|||
%typemap("rtypecheck") bool, bool &
|
||||
%{ is.logical($arg) && length($arg) == 1 %}
|
||||
%typemap("rtypecheck") bool *
|
||||
%{ is.logical($arg) % }
|
||||
%{ is.logical($arg) %}
|
||||
|
||||
/*
|
||||
Set up type checks to insure overloading precedence.
|
||||
|
|
@ -58,6 +58,12 @@
|
|||
they get called if length = 1
|
||||
*/
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_BOOL) bool {}
|
||||
%typecheck(SWIG_TYPECHECK_UINT32) unsigned int {}
|
||||
%typecheck(SWIG_TYPECHECK_INTEGER) int {}
|
||||
%typecheck(SWIG_TYPECHECK_FLOAT) float {}
|
||||
%typecheck(SWIG_TYPECHECK_DOUBLE) double {}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_BOOL_PTR) bool * {}
|
||||
%typecheck(SWIG_TYPECHECK_INT32_PTR) int * {}
|
||||
%typecheck(SWIG_TYPECHECK_FLOAT_PTR) float * {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue