diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-27 12:34:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-02-27 12:34:08 +0200 |
commit | e286f8e078a29dec70e4c515d6afa5b000638980 (patch) | |
tree | db681e30720809387b2489c76fa0e149c60a395b /odb/pragma.cxx | |
parent | 1695dc152f25a1806ce0539da5120bba718cbd12 (diff) |
Add support for specifying table prefix on namespace
Diffstat (limited to 'odb/pragma.cxx')
-rw-r--r-- | odb/pragma.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/pragma.cxx b/odb/pragma.cxx index 6c92f0f..010706e 100644 --- a/odb/pragma.cxx +++ b/odb/pragma.cxx @@ -472,13 +472,13 @@ check_spec_decl_type (tree d, } else if (p == "table") { - // Table can be used for both members (container) and types (container, - // object, or view). + // Table can be used for namespaces, members (container), and types + // (container, object, or view). // - if (tc != FIELD_DECL && !TYPE_P (d)) + if (tc != NAMESPACE_DECL && tc != FIELD_DECL && !TYPE_P (d)) { error (l) << "name '" << name << "' in db pragma " << p << " does " - << "not refer to a type or data member" << endl; + << "not refer to a namespace, type, or data member" << endl; return false; } } @@ -612,7 +612,7 @@ handle_pragma (cpp_reader* reader, string const& qualifier, tree decl, string const& decl_name, - bool ns) // True is this is a position namespace pragma. + bool ns) // True if this is a position namespace pragma. { tree t; cpp_ttype tt; |