3 %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */
4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) constbool; /* Ruby, wrong class name */
7 %constant bool constbool=false;
16 const bool* const_pbool = pbool;
17 const bool& const_rbool = rbool;
21 return 1024; // NOTE: any number > 255 should do
34 const bool& const_rbo(const bool& b) {
37 const bool* const_pbo(const bool* b) {
46 struct BoolStructure {
51 const bool* m_const_pbool;
52 const bool& m_const_rbool;
58 m_const_pbool(m_pbool),
59 m_const_rbool(m_rbool) {}
61 BoolStructure& operator=(const BoolStructure &);