From e2605ba3c9ca35524b0c86e74ffa37bee548aef3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Jun 2012 11:00:52 +0200 Subject: Add support for specifying output stream type (--stream-type) --- cli/runtime-inline.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/runtime-inline.cxx') 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;" -- cgit v1.1