test bool as member variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7542 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25cfc49856
commit
3ee6a93127
1 changed files with 16 additions and 0 deletions
|
|
@ -43,5 +43,21 @@ const bool* const_pbo(const bool* b) {
|
|||
bool value(bool* b) {
|
||||
return *b;
|
||||
}
|
||||
|
||||
struct BoolStructure {
|
||||
bool m_bool1;
|
||||
bool m_bool2;
|
||||
bool* m_pbool;
|
||||
bool& m_rbool;
|
||||
const bool* m_const_pbool;
|
||||
const bool& m_const_rbool;
|
||||
BoolStructure() :
|
||||
m_bool1(true),
|
||||
m_bool2(false),
|
||||
m_pbool(&m_bool1),
|
||||
m_rbool(m_bool2),
|
||||
m_const_pbool(m_pbool),
|
||||
m_const_rbool(m_rbool) {}
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue