Add object dependency tracking to make sure that during nested function calls all returned values are not prematurely destructed.

All tests pass on vc2008 now.
This commit is contained in:
Jason Turner
2010-10-02 13:26:06 +00:00
parent 43dbd8ac78
commit 74e719c053
5 changed files with 106 additions and 58 deletions

View File

@@ -138,6 +138,7 @@ namespace chaiscript
try {
if (lhs.is_undef()) {
retval = ss.call_function("clone", retval);
retval.clear_dependencies();
}
try {