Better bool test by Mark Traudt

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-07-23 22:45:29 +00:00
commit fd6676b31d

View file

@ -16,9 +16,15 @@ bool& rbool = bool2;
const bool* const_pbool = pbool;
const bool& const_rbool = rbool;
static int eax()
{
return 1024; // NOTE: any number > 255 should do
}
// bool functions
bool bo(bool b) {
return b;
eax();
return b;
}
bool& rbo(bool& b) {
return b;