summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx
index 8806e502..b2a44563 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -771,7 +771,10 @@ c_unparser::emit_function (functiondecl* v)
o->newline() << retvalue.init();
}
+ o->newline(1) << "{"; // in case body is embeddedcode with decls
v->body->visit (this);
+ o->newline(-1) << "}";
+
this->current_function = 0;
o->newline(-1) << "out:";