From 536e3e73228b6168437704ede89499406b87391d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 22:16:38 -0400 Subject: Added a new scope_value() inline helper function --- src/value.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 4dfd591c..5971535c 100644 --- a/src/value.h +++ b/src/value.h @@ -993,6 +993,10 @@ inline string value_context(const value_t& val) { return buf.str(); } +inline value_t scope_value(scope_t * val) { + return value_t(val); +} + template inline value_t& add_or_set_value(value_t& lhs, const T& rhs) { if (lhs.is_null()) -- cgit v1.2.3