xo-expression: use Reflect::require_function() for precision
This commit is contained in:
parent
2b32aa83c7
commit
6783cb7e8c
3 changed files with 14 additions and 6 deletions
|
|
@ -22,7 +22,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
virtual const std::string & name() const = 0;
|
||||
virtual int n_arg() const = 0;
|
||||
int n_arg() const { return this->value_td()->n_fn_arg(); }
|
||||
TypeDescr fn_retval() const { return this->value_td()->fn_retval(); }
|
||||
TypeDescr fn_arg(uint32_t i) const { return this->value_td()->fn_arg(i); }
|
||||
|
||||
//virtual TypeDescr value_td() const override = 0;
|
||||
//virtual TaggedPtr value_tp() const override = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue