Added "date" valexpr to session, for bal -V
This commit is contained in:
parent
6d880c2728
commit
a8a87ab908
1 changed files with 5 additions and 0 deletions
|
|
@ -235,6 +235,11 @@ expr_t::ptr_op_t session_t::lookup(const string& name)
|
|||
{
|
||||
const char * p = name.c_str();
|
||||
switch (*p) {
|
||||
case 'd':
|
||||
if (is_eq(p, "date"))
|
||||
return MAKE_FUNCTOR(session_t::fn_today);
|
||||
break;
|
||||
|
||||
case 'n':
|
||||
if (is_eq(p, "now"))
|
||||
return MAKE_FUNCTOR(session_t::fn_now);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue