From e6181e6a87a5e38e4e02b09f855d37fd882ae513 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Jun 2013 10:33:48 +0200 Subject: Various bug fixes for dynamic multi-database support --- odb/include.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'odb/include.cxx') 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; } } -- cgit v1.1