summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2016-01-09 21:14:59 +0100
committerAurelien Jacobs <aurel@gnuage.org>2016-01-09 21:14:59 +0100
commit982b14370f2132463ebe0666d329854a807fc269 (patch)
treeb8e81c14741db7436c6320817da6299e4af3582d
parentc6519f7c1a45eaa4a6248c692e64d57c2d280782 (diff)
downloadswig-982b14370f2132463ebe0666d329854a807fc269.tar.gz
Ruby fix unbalanced braces causing issue with the YARD parser
-rw-r--r--Source/Modules/ruby.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx
index f28ba9fd9..d21fe0fbb 100644
--- a/Source/Modules/ruby.cxx
+++ b/Source/Modules/ruby.cxx
@@ -1744,6 +1744,9 @@ public:
Printf(f->def, "#else\n");
Printv(f->def, "SWIGINTERN VALUE\n", wname, "(int argc, VALUE *argv, VALUE self) {", NIL);
Printf(f->def, "#endif\n");
+ Printf(f->def, "#if 0\n");
+ Printf(f->def, "} /* c-mode */\n");
+ Printf(f->def, "#endif\n");
} else if (current == CONSTRUCTOR_INITIALIZE) {
Printv(f->def, "SWIGINTERN VALUE\n", wname, "(int argc, VALUE *argv, VALUE self) {", NIL);
if (!varargs) {