aboutsummaryrefslogtreecommitdiff
path: root/odb/pragma.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-25 10:35:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-25 10:35:51 +0200
commit97810bec4dfae25f20899446e75821e5d799834f (patch)
treef42414fb242ad3f07573f7f4d0971874766e5cb0 /odb/pragma.hxx
parentd1ad30f7a517e69bc87d1347224f1c9ab38493b3 (diff)
Add support for database prefixes in pragma language
Diffstat (limited to 'odb/pragma.hxx')
-rw-r--r--odb/pragma.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/pragma.hxx b/odb/pragma.hxx
index efb80d8..cafaedd 100644
--- a/odb/pragma.hxx
+++ b/odb/pragma.hxx
@@ -12,6 +12,8 @@
#include <vector>
#include <string>
+#include <odb/option-types.hxx> // database
+
#include <cutl/container/any.hxx>
#include <cutl/container/multi-index.hxx>
#include <cutl/compiler/context.hxx>
@@ -256,6 +258,11 @@ extern decl_pragmas decl_pragmas_;
typedef std::set<std::string> pragma_name_set;
extern pragma_name_set simple_value_pragmas_;
+// Database we are generating code for. Used to ignore database-specific
+// pragmas.
+//
+extern database pragma_db_;
+
extern "C" void
register_odb_pragmas (void*, void*);