diff options
Diffstat (limited to 'odb/pragma.cxx')
-rw-r--r-- | odb/pragma.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/odb/pragma.cxx b/odb/pragma.cxx index abb6692..ffe711f 100644 --- a/odb/pragma.cxx +++ b/odb/pragma.cxx @@ -404,7 +404,8 @@ check_spec_decl_type (tree d, p == "query" || p == "object" || p == "optimistic" || - p == "polymorphic") + p == "polymorphic" || + p == "definition") { if (tc != RECORD_TYPE) { @@ -1162,6 +1163,19 @@ handle_pragma (cxx_lexer& l, tt = l.next (tl, &tn); } + else if (p == "definition") + { + // definition + // + + // Make sure we've got the correct declaration type. + // + if (decl != 0 && !check_spec_decl_type (decl, decl_name, p, loc)) + return; + + val = l.location (); + tt = l.next (tl, &tn); + } else if (p == "callback") { // callback (name) |