mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Add flags to parse_and_eval
This adds a flags parameter to parse_and_eval.
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user