From 470eced5567500dcce9020008f73ff4b397af46c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 24 Dec 2018 23:13:34 +0300 Subject: Add build_config::classes member --- libbbot/build-config.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbbot/build-config.cxx') diff --git a/libbbot/build-config.cxx b/libbbot/build-config.cxx index 2e6dfbc..7d174c4 100644 --- a/libbbot/build-config.cxx +++ b/libbbot/build-config.cxx @@ -30,6 +30,9 @@ namespace bbot build_configs r; tab_parser parser (is, name); + r.classes.push_back ("all"); + r.classes.push_back ("default"); + tab_fields tl; while (!(tl = parser.next ()).empty ()) { @@ -161,6 +164,9 @@ namespace bbot j = r.class_inheritance_map.find (base); } + + if (c != "all" && c != "default") + r.classes.push_back (c); } else if (j->second != base && !base.empty ()) throw invalid_argument ("'" + c + "' new base '" + base + -- cgit v1.1