summaryrefslogtreecommitdiff
path: root/src/value.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-12 22:16:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-13 01:03:48 -0400
commit536e3e73228b6168437704ede89499406b87391d (patch)
treeeb2193c64f8fb2253eb117eaf1870b52dd34ff1a /src/value.h
parent6ef755c1330c6e11476ea2e63b8388ad29efb4ef (diff)
downloadfork-ledger-536e3e73228b6168437704ede89499406b87391d.tar.gz
fork-ledger-536e3e73228b6168437704ede89499406b87391d.tar.bz2
fork-ledger-536e3e73228b6168437704ede89499406b87391d.zip
Added a new scope_value() inline helper function
Diffstat (limited to 'src/value.h')
-rw-r--r--src/value.h4
1 files changed, 4 insertions, 0 deletions
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 <typename T>
inline value_t& add_or_set_value(value_t& lhs, const T& rhs) {
if (lhs.is_null())