summaryrefslogtreecommitdiff
path: root/valexpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'valexpr.h')
-rw-r--r--valexpr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/valexpr.h b/valexpr.h
index 2ce57278..87367fb0 100644
--- a/valexpr.h
+++ b/valexpr.h
@@ -460,6 +460,12 @@ inline value_t compute_total(const details_t& details = details_t()) {
return total_expr->compute(details);
}
+inline void parse_value_definition(const std::string& str,
+ scope_t * scope = NULL) {
+ value_auto_ptr expr
+ (parse_boolean_expr(str, scope ? scope : global_scope.get()));
+}
+
//////////////////////////////////////////////////////////////////////
template <typename T>