From 87512e97516160ec980e9d0621522ada405438fe Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 5 Nov 2019 15:13:57 +0100 Subject: Filter: Improve typecheck error messages --- filter/f-inst.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'filter/f-inst.h') diff --git a/filter/f-inst.h b/filter/f-inst.h index 33fcf4a9..8be8443b 100644 --- a/filter/f-inst.h +++ b/filter/f-inst.h @@ -29,7 +29,9 @@ enum f_instruction_flags { #define f_new_inst(...) MACRO_CONCAT_AFTER(f_new_inst_, MACRO_FIRST(__VA_ARGS__))(__VA_ARGS__) /* Convert the instruction back to the enum name */ -const char *f_instruction_name(enum f_instruction_code fi); +const char *f_instruction_name_(enum f_instruction_code fi); +static inline const char *f_instruction_name(enum f_instruction_code fi) +{ return f_instruction_name_(fi) + 3; } /* Filter structures for execution */ /* Line of instructions to be unconditionally executed one after another */ -- cgit v1.2.3