Browse Source

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.
binutils-2_42-branch
Mike Frysinger 2 years ago
parent
commit
ef993dfa05
  1. 4
      sim/igen/misc.h

4
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) \

Loading…
Cancel
Save