Make for better error messages when a clone fails

This commit is contained in:
Jason Turner
2009-08-22 13:55:06 +00:00
parent 2e7c5f413e
commit 0b780593a6
3 changed files with 10 additions and 1 deletions

View File

@@ -330,6 +330,13 @@ namespace chaiscript
return std::vector<std::pair<std::string, std::multimap<std::string, Proxy_Function >::mapped_type> >(range.first, range.second);
}
/**
* Return true if a function exists
*/
bool function_exists(const std::string &name) const
{
return m_functions.find(name) != m_functions.end();
}
/**
* Get a vector of all registered functions