From 56deeaabaa8d818de008a02f3e7b8ee9e725e8a0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Apr 2011 15:21:50 +0200 Subject: Extract #include directives from prologues/epilogues This is necessary in a situation where a forward-declared object's definition is #include'd into the ODB compilation with --odb-epilogue. In this case the ODB compiler extract the directive from the epilogue's text. --- odb/odb.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/odb.cxx') diff --git a/odb/odb.cxx b/odb/odb.cxx index e70c368..4511115 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -615,6 +615,9 @@ main (int argc, char* argv[]) // Add custom prologue if any. // + // NOTE: if you change the format, you also need to update code + // in include.cxx + // strings const& pro (ops.odb_prologue ()); for (size_t i (0); i < pro.size (); ++i) { @@ -640,6 +643,9 @@ main (int argc, char* argv[]) // Add custom epilogue if any. // + // NOTE: if you change the format, you also need to update code + // in include.cxx + // strings const& epi (ops.odb_epilogue ()); for (size_t i (0); i < epi.size (); ++i) { -- cgit v1.1