summaryrefslogtreecommitdiff
path: root/cli/runtime-inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-15 11:00:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-15 11:00:52 +0200
commite2605ba3c9ca35524b0c86e74ffa37bee548aef3 (patch)
tree5ff3f5145fa9731895e2bf470efb7c94585331a8 /cli/runtime-inline.cxx
parent5473563e9af0abbc81a3cfd7079c34fbc75dfdb4 (diff)
Add support for specifying output stream type (--stream-type)
Diffstat (limited to 'cli/runtime-inline.cxx')
-rw-r--r--cli/runtime-inline.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/runtime-inline.cxx b/cli/runtime-inline.cxx
index 4d95a78..cb0e0e4 100644
--- a/cli/runtime-inline.cxx
+++ b/cli/runtime-inline.cxx
@@ -12,6 +12,7 @@ generate_runtime_inline (context& ctx)
{
ostream& os (ctx.os);
string const& inl (ctx.inl);
+ string const& os_type (ctx.options.ostream_type ());
ctx.cli_open ();
@@ -31,8 +32,8 @@ generate_runtime_inline (context& ctx)
os << "// exception" << endl
<< "//" << endl
- << inl << "std::ostream&" << endl
- << "operator<< (std::ostream& os, const exception& e)"
+ << inl << os_type << "&" << endl
+ << "operator<< (" << os_type << "& os, const exception& e)"
<< "{"
<< "e.print (os);"
<< "return os;"