aboutsummaryrefslogtreecommitdiff
path: root/odb/odb.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-22 15:21:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-22 15:21:50 +0200
commit56deeaabaa8d818de008a02f3e7b8ee9e725e8a0 (patch)
tree7dc64e48062425ad0d053265f48c9671a69e8357 /odb/odb.cxx
parent587db8c7ca28d5cd1722307073aa31aed5b89d0a (diff)
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.
Diffstat (limited to 'odb/odb.cxx')
-rw-r--r--odb/odb.cxx6
1 files changed, 6 insertions, 0 deletions
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)
{