From 1a6a0652a6ef5b319cfc8ad05a0acee6910f7560 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Apr 2011 15:02:43 +0200 Subject: Add support for abstract object types --- odb/pragma.cxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'odb/pragma.cxx') diff --git a/odb/pragma.cxx b/odb/pragma.cxx index 8cfc3fa..d8f3aef 100644 --- a/odb/pragma.cxx +++ b/odb/pragma.cxx @@ -128,7 +128,8 @@ check_decl_type (tree d, string const& name, string const& p, location_t l) } } else if (p == "object" || - p == "pointer") + p == "pointer" || + p == "abstract") { if (tc != RECORD_TYPE) { @@ -365,6 +366,18 @@ handle_pragma (cpp_reader* reader, tt = pragma_lex (&t); } + else if (p == "abstract") + { + // abstract + // + + // Make sure we've got the correct declaration type. + // + if (decl != 0 && !check_decl_type (decl, decl_name, p, loc)) + return; + + tt = pragma_lex (&t); + } else if (p == "id") { // id -- cgit v1.1