diff options
Diffstat (limited to 'Examples/test-suite/bools.i')
-rw-r--r-- | Examples/test-suite/bools.i | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Examples/test-suite/bools.i b/Examples/test-suite/bools.i index 2ef3d93a6..ef2d38aca 100644 --- a/Examples/test-suite/bools.i +++ b/Examples/test-suite/bools.i @@ -5,6 +5,12 @@ %rename(BoolSt) BoolStructure; #endif +/* We had to rename this in the C++ API being wrapped due to a collision with + * a value typedef in newer ocaml headers, so use %rename to avoid having to + * update all the runme files which use it. + */ +%rename(value) bool_value; + %warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK); /* memory leak when setting a ptr/ref variable */ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) constbool; /* Ruby, wrong class name */ @@ -44,7 +50,7 @@ const bool* const_pbo(const bool* b) { } // helper function -bool value(bool* b) { +bool bool_value(bool* b) { return *b; } @@ -62,8 +68,6 @@ struct BoolStructure { m_rbool(m_bool2), m_const_pbool(m_pbool), m_const_rbool(m_rbool) {} -private: - BoolStructure& operator=(const BoolStructure &); }; %} |