diff options
Diffstat (limited to 'sim/igen/misc.h')
-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) \ |