Added scope new/push to wesley

This commit is contained in:
Jonathan Turner
2009-06-05 22:57:13 +00:00
parent 1dbaa4062c
commit 4cf95bbf9c
2 changed files with 5 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class BoxedCPP_System
void pop_scope()
{
if (m_scopes.size() == 1)
if (m_scopes.size() > 1)
{
m_scopes.pop_back();
} else {
@@ -70,7 +70,7 @@ class BoxedCPP_System
if (itr != m_scopes[i].end())
{
return itr->second;
}
}
}
throw std::range_error("Object not known: " + name);