diff options
author | Mike Frysinger <vapier@gentoo.org> | 2024-01-01 17:28:51 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-01 17:31:12 -0500 |
commit | ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c (patch) | |
tree | fcef5626f8db0d18b654e59480d2d060c43f51de /sim/igen | |
parent | 9b6e0cb3bac0852ccc61a50cb189c5187956e76b (diff) | |
download | binutils-ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c.zip binutils-ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c.tar.gz binutils-ef993dfa05f6a79a76ede0d0be00f7ac93d7c75c.tar.bz2 |
sim: igen: extend error to take arguments
The ppc igen error helper allows arbitrary printf calls, so extend
the common one to do the same.
Diffstat (limited to 'sim/igen')
-rw-r--r-- | sim/igen/misc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/igen/misc.h b/sim/igen/misc.h index eff8a20..4561055 100644 --- a/sim/igen/misc.h +++ b/sim/igen/misc.h @@ -56,12 +56,12 @@ extern error_func warning; extern error_func notify; -#define ERROR(EXPRESSION) \ +#define ERROR(EXPRESSION, args...) \ do { \ line_ref line; \ line.file_name = filter_filename (__FILE__); \ line.line_nr = __LINE__; \ - error (&line, EXPRESSION "\n"); \ + error (&line, EXPRESSION "\n", ## args); \ } while (0) #define ASSERT(EXPRESSION) \ |