diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-11-05 15:13:57 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-11-05 15:30:16 +0100 |
commit | 87512e97516160ec980e9d0621522ada405438fe (patch) | |
tree | ad2a83b5b56706739a2a90b468d76949053efe4d /filter/f-inst.h | |
parent | c00c20a79941b2bbed9e957134259763dcbb29f0 (diff) |
Filter: Improve typecheck error messages
Diffstat (limited to 'filter/f-inst.h')
-rw-r--r-- | filter/f-inst.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |