Cosmetic changes in Octave runtime
Fix bracket matching!
This commit is contained in:
parent
fc521be4e6
commit
ab8f05204f
1 changed files with 6 additions and 4 deletions
|
|
@ -982,10 +982,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SWIG_OCTAVE_PREREQ(4,0,0)
|
#if SWIG_OCTAVE_PREREQ(4,0,0)
|
||||||
void print(std::ostream &os, bool pr_as_read_syntax = false) {
|
void print(std::ostream &os, bool pr_as_read_syntax = false)
|
||||||
#else
|
#else
|
||||||
void print(std::ostream &os, bool pr_as_read_syntax = false) const {
|
void print(std::ostream &os, bool pr_as_read_syntax = false) const
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
if (is_string()) {
|
if (is_string()) {
|
||||||
os << string_value();
|
os << string_value();
|
||||||
return;
|
return;
|
||||||
|
|
@ -1178,10 +1179,11 @@ SWIGRUNTIME void swig_acquire_ownership_obj(void *vptr, int own);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SWIG_OCTAVE_PREREQ(4,0,0)
|
#if SWIG_OCTAVE_PREREQ(4,0,0)
|
||||||
void print(std::ostream &os, bool pr_as_read_syntax = false) {
|
void print(std::ostream &os, bool pr_as_read_syntax = false)
|
||||||
#else
|
#else
|
||||||
void print(std::ostream &os, bool pr_as_read_syntax = false) const {
|
void print(std::ostream &os, bool pr_as_read_syntax = false) const
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
indent(os);
|
indent(os);
|
||||||
os << "swig packed type: name = " << (type ? type->name : std::string()) << ", len = " << buf.size(); newline(os);
|
os << "swig packed type: name = " << (type ? type->name : std::string()) << ", len = " << buf.size(); newline(os);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue