summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2016-01-10 20:19:55 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2016-01-10 20:19:55 +0000
commit8b9a6d3c24cd6004f3114a27db395433f2f1ed4f (patch)
tree3ed032810fa0e727e1df777215dd48f9eb57d407
parent58550acc431585682b52f0363a9a839e61d92e65 (diff)
parent2d094d7d9ffb14e25258025c3b44c001b466468f (diff)
downloadswig-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.cxx6
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) {