diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2016-01-10 20:19:55 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2016-01-10 20:19:55 +0000 |
commit | 8b9a6d3c24cd6004f3114a27db395433f2f1ed4f (patch) | |
tree | 3ed032810fa0e727e1df777215dd48f9eb57d407 | |
parent | 58550acc431585682b52f0363a9a839e61d92e65 (diff) | |
parent | 2d094d7d9ffb14e25258025c3b44c001b466468f (diff) | |
download | swig-8b9a6d3c24cd6004f3114a27db395433f2f1ed4f.tar.gz |
Merge branch 'aurelj-master'
* aurelj-master:
Alternative solution for Ruby unbalanced braces
Ruby fix unbalanced braces causing issue with the YARD parser
-rw-r--r-- | Source/Modules/ruby.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index f28ba9fd9..216d4ef27 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -1739,11 +1739,13 @@ public: /* Now write the wrapper function itself */ if (current == CONSTRUCTOR_ALLOCATE) { + Printv(f->def, "SWIGINTERN VALUE\n", NIL); Printf(f->def, "#ifdef HAVE_RB_DEFINE_ALLOC_FUNC\n"); - Printv(f->def, "SWIGINTERN VALUE\n", wname, "(VALUE self) {", NIL); + Printv(f->def, wname, "(VALUE self)\n", NIL); Printf(f->def, "#else\n"); - Printv(f->def, "SWIGINTERN VALUE\n", wname, "(int argc, VALUE *argv, VALUE self) {", NIL); + Printv(f->def, wname, "(int argc, VALUE *argv, VALUE self)\n", NIL); Printf(f->def, "#endif\n"); + Printv(f->def, "{\n", NIL); } else if (current == CONSTRUCTOR_INITIALIZE) { Printv(f->def, "SWIGINTERN VALUE\n", wname, "(int argc, VALUE *argv, VALUE self) {", NIL); if (!varargs) { |