Fixed typecheck for bools
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3276b287b3
commit
2c29e8ea58
1 changed files with 7 additions and 2 deletions
|
|
@ -324,12 +324,17 @@ typedef unsigned long SCM;
|
|||
const int &, const short &, const long &,
|
||||
const unsigned int &, const unsigned short &, const unsigned long &,
|
||||
const long long &, const unsigned long long &,
|
||||
enum SWIGTYPE,
|
||||
bool, const bool &
|
||||
enum SWIGTYPE
|
||||
{
|
||||
$1 = SCM_NFALSEP(scm_integer_p($input)) ? 1 : 0;
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_BOOL)
|
||||
bool, bool&, const bool&
|
||||
{
|
||||
$1 = SCM_BOOLP($input) ? 1 : 0;
|
||||
}
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_DOUBLE)
|
||||
float, double,
|
||||
const float &, const double &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue