mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Make sure to invalidate the cache when a new function name is added
This commit is contained in:
parent
096c8aab50
commit
94e4b671f3
@ -170,6 +170,7 @@ namespace chaiscript
|
||||
bool add(const Proxy_Function &f, const std::string &name)
|
||||
{
|
||||
validate_object_name(name);
|
||||
m_scopes->first.erase(name);
|
||||
return add_function(f, name);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user