aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-13 10:42:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-13 10:42:46 +0200
commit0634ddb1f04489b8fe26d131ee216dec0a47a28d (patch)
tree700c68c19c4c28667d072fd3aab1c670216dbf7c
parent576f34b7e2bf3804343a0aea7e82b1a737440c56 (diff)
Change pragma syntax
Change odb pragma namespace to db. Use qualifiers (object, value, and member) to specify type/member name. Add support for mapping C++ types to db types.
-rw-r--r--odb/core.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/core.hxx b/odb/core.hxx
index 53aea04..e11d88c 100644
--- a/odb/core.hxx
+++ b/odb/core.hxx
@@ -9,10 +9,10 @@
#include <odb/pre.hxx>
#ifdef ODB_COMPILER
-# define ODB_PRAGMA_IMPL(x) _Pragma (#x)
-# define ODB_PRAGMA(x) ODB_PRAGMA_IMPL (odb x)
+# define PRAGMA_DB_IMPL(x) _Pragma (#x)
+# define PRAGMA_DB(x) PRAGMA_DB_IMPL (db x)
#else
-# define PRAGMA_ODB(x)
+# define PRAGMA_DB(x)
#endif
#include <odb/forward.hxx>