aboutsummaryrefslogtreecommitdiff
path: root/odb/include.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-06-21 10:33:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-06-21 11:25:15 +0200
commit8c31ee59d95356cb111bab1853eac3b35b451f01 (patch)
tree00d62089c7ea3e39f7e9d4968517a51562483036 /odb/include.cxx
parent0efbd383bf4b9d6c1a884ff0249412567b329fce (diff)
Various bug fixes for dynamic multi-database support2.2.22.2
Diffstat (limited to 'odb/include.cxx')
-rw-r--r--odb/include.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/odb/include.cxx b/odb/include.cxx
index 152cee8..a6e8c53 100644
--- a/odb/include.cxx
+++ b/odb/include.cxx
@@ -486,9 +486,11 @@ namespace
namespace include
{
- void
+ bool
generate (bool header)
{
+ bool r (false);
+
// We do the same include directive collection and processing
// twice, once for the header file and once for the source file.
// If that proves to be too slow, we will need to do it only once
@@ -695,8 +697,10 @@ namespace include
char o (inc->type_ == include_directive::quote ? '"' : '<');
ctx.os << "#include " << ctx.process_include_path (
- f.string (), false, o) << endl
- << endl;
+ f.string (), false, o) << endl;
+ r = true;
}
+
+ return r;
}
}