Add some debug output in the config compiler.

This commit is contained in:
Gunnar Beutner 2013-03-27 13:49:58 +01:00
parent b9ded4a851
commit 96b1bd1943
2 changed files with 5 additions and 0 deletions

View File

@ -113,6 +113,8 @@ void ConfigCompilerContext::LinkItems(void)
{
SetContext(this);
Log(LogInformation, "config", "Linking config items...");
BOOST_FOREACH(const ConfigItem::Ptr& item, m_Items) {
item->Link();
}
@ -124,6 +126,8 @@ void ConfigCompilerContext::ValidateItems(void)
{
SetContext(this);
Log(LogInformation, "config", "Validating config items...");
BOOST_FOREACH(const ConfigItem::Ptr& item, m_Items) {
ConfigType::Ptr ctype;

View File

@ -33,6 +33,7 @@ Expression::Expression(const String& key, ExpressionOperator op,
const Value& value, const DebugInfo& debuginfo)
: m_Key(key), m_Operator(op), m_Value(value), m_DebugInfo(debuginfo)
{
ASSERT(op != OperatorExecute || value.IsObjectType<ExpressionList>());
}
void Expression::Execute(const Dictionary::Ptr& dictionary) const