Merge branch 'return_value_handling' into develop

This commit is contained in:
Jason Turner
2015-04-10 08:20:55 -06:00
4 changed files with 56 additions and 31 deletions

View File

@@ -569,7 +569,12 @@ namespace chaiscript
lhs.assign(rhs);
return rhs;
} else {
rhs = t_ss.call_function("clone", rhs);
if (!rhs.is_return_value())
{
rhs = t_ss.call_function("clone", rhs);
} else {
rhs.reset_return_value();
}
}
}