mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-11 20:59:58 +08:00
Minor performance enhancement for caching function and cleanup of minor windows warning in same function.
This commit is contained in:
parent
e2cdac0406
commit
daee00da95
@ -49,7 +49,7 @@ namespace chaiscript
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename Eval_System>
|
template <typename Eval_System>
|
||||||
void cache_const(Eval_System &ss, const TokenPtr &node, Boxed_Value value) {
|
void cache_const(Eval_System &/*ss*/, const TokenPtr &node, const Boxed_Value &value) {
|
||||||
node->cached_value = value;
|
node->cached_value = value;
|
||||||
node->is_cached = true;
|
node->is_cached = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user