Allow value expressions access to session options
This commit is contained in:
parent
20077db3c8
commit
5a194cbdf4
1 changed files with 4 additions and 0 deletions
|
|
@ -258,6 +258,10 @@ expr_t::ptr_op_t session_t::lookup(const string& name)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if they are trying to access an option's setting or value.
|
||||||
|
if (option_t<session_t> * handler = lookup_option(p))
|
||||||
|
return MAKE_OPT_FUNCTOR(session_t, handler);
|
||||||
|
|
||||||
return symbol_scope_t::lookup(name);
|
return symbol_scope_t::lookup(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue