Add flags to parse_and_eval
This adds a flags parameter to parse_and_eval.
This commit is contained in:
parent
87b647cfb1
commit
2c64cbb737
@ -67,9 +67,9 @@ parse_and_eval_long (const char *exp)
|
||||
}
|
||||
|
||||
struct value *
|
||||
parse_and_eval (const char *exp)
|
||||
parse_and_eval (const char *exp, parser_flags flags)
|
||||
{
|
||||
expression_up expr = parse_expression (exp);
|
||||
expression_up expr = parse_expression (exp, nullptr, flags);
|
||||
|
||||
return expr->evaluate ();
|
||||
}
|
||||
|
@ -1313,7 +1313,7 @@ extern void fetch_subexp_value (struct expression *exp,
|
||||
std::vector<value_ref_ptr> *val_chain,
|
||||
bool preserve_errors);
|
||||
|
||||
extern struct value *parse_and_eval (const char *exp);
|
||||
extern struct value *parse_and_eval (const char *exp, parser_flags flags = 0);
|
||||
|
||||
extern struct value *parse_to_comma_and_eval (const char **expp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user