forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -56,12 +56,12 @@ extern error_func warning;
|
|||||||
extern error_func notify;
|
extern error_func notify;
|
||||||
|
|
||||||
|
|
||||||
#define ERROR(EXPRESSION) \
|
#define ERROR(EXPRESSION, args...) \
|
||||||
do { \
|
do { \
|
||||||
line_ref line; \
|
line_ref line; \
|
||||||
line.file_name = filter_filename (__FILE__); \
|
line.file_name = filter_filename (__FILE__); \
|
||||||
line.line_nr = __LINE__; \
|
line.line_nr = __LINE__; \
|
||||||
error (&line, EXPRESSION "\n"); \
|
error (&line, EXPRESSION "\n", ## args); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define ASSERT(EXPRESSION) \
|
#define ASSERT(EXPRESSION) \
|
||||||
|
|||||||
Reference in New Issue
Block a user