From f1f4aeb4beb1a84fda01e3d1d004a6d6f3092e69 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sat, 19 May 2012 18:04:51 -0600 Subject: [PATCH 1/2] Add test and reenable function I accidentally commented out --- unittests/temporary_lifetime.chai | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 unittests/temporary_lifetime.chai diff --git a/unittests/temporary_lifetime.chai b/unittests/temporary_lifetime.chai new file mode 100644 index 0000000..ab6933e --- /dev/null +++ b/unittests/temporary_lifetime.chai @@ -0,0 +1,3 @@ +for_each(range([1..10]), fun(x) {print(x);} ); + +assert_true(true); From 56757973b61df5c6f7a5626ad8bd04a4c773ba17 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sat, 19 May 2012 18:05:41 -0600 Subject: [PATCH 2/2] Actually reenable function --- include/chaiscript/dispatchkit/dispatchkit.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/chaiscript/dispatchkit/dispatchkit.hpp b/include/chaiscript/dispatchkit/dispatchkit.hpp index 58e1053..4056a2e 100644 --- a/include/chaiscript/dispatchkit/dispatchkit.hpp +++ b/include/chaiscript/dispatchkit/dispatchkit.hpp @@ -415,7 +415,6 @@ namespace chaiscript * Set the value of an object, by name. If the object * is not available in the current scope it is created */ - /* void add(const Boxed_Value &obj, const std::string &name) { validate_object_name(name); @@ -433,7 +432,7 @@ namespace chaiscript add_object(name, obj); } - */ + /** * Adds a named object to the current scope