diff options
author | Orion Poplawski <orion@cora.nwra.com> | 2015-07-09 19:20:46 -0600 |
---|---|---|
committer | Orion Poplawski <orion@cora.nwra.com> | 2015-07-09 19:20:46 -0600 |
commit | 350c410d4bba978263e592a070e87cdae1663c7f (patch) | |
tree | 5a18123f8f6cef9d388cdf475820b17446fc1e06 | |
parent | 248890aad08a2b1e1182f9b5986806e2b8c92d17 (diff) | |
download | swig-350c410d4bba978263e592a070e87cdae1663c7f.tar.gz |
Update print() signature for octave 4.0
-rw-r--r-- | Lib/octave/octrun.swg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/octave/octrun.swg b/Lib/octave/octrun.swg index 40035449e..ddfd48939 100644 --- a/Lib/octave/octrun.swg +++ b/Lib/octave/octrun.swg @@ -981,7 +981,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); return octave_value(); } +#if SWIG_OCTAVE_PREREQ(4,0,0) + void print(std::ostream &os, bool pr_as_read_syntax = false) { +#else void print(std::ostream &os, bool pr_as_read_syntax = false) const { +#endif if (is_string()) { os << string_value(); return; @@ -1126,7 +1130,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); virtual octave_value convert_to_str_internal(bool pad, bool force, char type) const { return ptr->convert_to_str_internal(pad, force, type); } +#if SWIG_OCTAVE_PREREQ(4,0,0) + void print(std::ostream &os, bool pr_as_read_syntax = false) +#else void print(std::ostream &os, bool pr_as_read_syntax = false) const +#endif { return ptr->print(os, pr_as_read_syntax); } private: @@ -1169,7 +1177,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own); return true; } +#if SWIG_OCTAVE_PREREQ(4,0,0) + void print(std::ostream &os, bool pr_as_read_syntax = false) { +#else void print(std::ostream &os, bool pr_as_read_syntax = false) const { +#endif indent(os); os << "swig packed type: name = " << (type ? type->name : std::string()) << ", len = " << buf.size(); newline(os); } |