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:
parent
fb6cac8590
commit
fd6676b31d
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue