From 9ddac092a831d9eb4a53959764c2d13b12964a0c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Jan 2024 17:34:01 -0500 Subject: sim: ppc: rework igen error to match common Switch to an ERROR macro and tweak the error signature to match the common igen version in preparation for merging the two implementations. --- sim/ppc/misc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sim/ppc/misc.h') diff --git a/sim/ppc/misc.h b/sim/ppc/misc.h index 0073467..243d5c9 100644 --- a/sim/ppc/misc.h +++ b/sim/ppc/misc.h @@ -28,8 +28,11 @@ #include "ansidecl.h" #include "filter_host.h" -extern void error (const char *msg, ...) - ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); +extern void error (const void *line, const char *msg, ...) + ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 3); + +#define ERROR(EXPRESSION, args...) \ + error (NULL, EXPRESSION, ## args) #define ASSERT(EXPRESSION) \ do { \ -- cgit v1.1