bool mods for Visual C++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b8caeeae1b
commit
5956f8dddb
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ or you can use the %apply directive :
|
||||||
if (Tcl_GetIntFromObj(interp,$input,&ivalue) == TCL_ERROR) {
|
if (Tcl_GetIntFromObj(interp,$input,&ivalue) == TCL_ERROR) {
|
||||||
SWIG_fail;
|
SWIG_fail;
|
||||||
}
|
}
|
||||||
temp = (bool) ivalue;
|
temp = ivalue ? true : false;
|
||||||
$1 = &temp;
|
$1 = &temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue