From 00fe8bc815764a67b6d30411bcf9770320cc08ea Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 28 Oct 2005 07:20:34 +0000 Subject: Added a `terminus' global, which if set marks the "current time" as seen by the value expression logic. This has the effect of changing valexprs that test against the current time, such as for calculating the market value of commodities. --- valexpr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'valexpr.h') diff --git a/valexpr.h b/valexpr.h index bae9bbab..2c31b4ca 100644 --- a/valexpr.h +++ b/valexpr.h @@ -127,6 +127,8 @@ struct value_expr_t extern std::auto_ptr amount_expr; extern std::auto_ptr total_expr; +extern std::time_t terminus; + inline void compute_amount(value_t& result, const details_t& details) { if (amount_expr.get()) amount_expr->compute(result, details); -- cgit v1.2.3