[PATCH/committed,6/8] sim: igen: extend error to take arguments
Checks
Commit Message
The ppc igen error helper allows arbitrary printf calls, so extend
the common one to do the same.
---
sim/igen/misc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -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) \