diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-06-21 10:33:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-06-21 10:41:12 +0200 |
commit | e6181e6a87a5e38e4e02b09f855d37fd882ae513 (patch) | |
tree | 4d4e00e5453affca985264604cf292093955c58e /odb/include.cxx | |
parent | 617407a3353e5bfce0dc9144776015899d7a4e65 (diff) |
Various bug fixes for dynamic multi-database support
Diffstat (limited to 'odb/include.cxx')
-rw-r--r-- | odb/include.cxx | 10 |
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; } } |