diff options
Diffstat (limited to 'odb/semantics/enum.cxx')
-rw-r--r-- | odb/semantics/enum.cxx | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/odb/semantics/enum.cxx b/odb/semantics/enum.cxx new file mode 100644 index 0000000..ab19c70 --- /dev/null +++ b/odb/semantics/enum.cxx @@ -0,0 +1,48 @@ +// file : odb/semantics/enum.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include <cutl/compiler/type-info.hxx> + +#include <semantics/enum.hxx> + +namespace semantics +{ + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + // enumerates + // + { + type_info ti (typeid (enumerates)); + ti.add_base (typeid (edge)); + insert (ti); + } + + // enumerator + // + { + type_info ti (typeid (enumerator)); + ti.add_base (typeid (instance)); + insert (ti); + } + + // enum_ + // + { + type_info ti (typeid (enum_)); + ti.add_base (typeid (type)); + insert (ti); + } + } + } init_; + } +} |