diff options
| author | gingerBill <bill@gingerbill.org> | 2021-08-27 12:14:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-08-27 12:14:51 +0100 |
| commit | b88e9452685f9e2c0d9dd1ba0609f5158252c45b (patch) | |
| tree | 4622847a692a61d335571b1d6d92b8eb823e5b70 /src/tokenizer.cpp | |
| parent | bf56e3ea8dab1da71d54de320007147ae969b78f (diff) | |
`ERROR_BLOCK()` any usages of "Did you mean?" like behaviour whilst iterating across a scope entry map
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 814e418aa..1e2a3caf3 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -377,6 +377,8 @@ void end_error_block(void) { mutex_unlock(&global_error_collector.block_mutex); } +#define ERROR_BLOCK() begin_error_block(); defer (end_error_block()) + #define ERROR_OUT_PROC(name) void name(char const *fmt, va_list va) typedef ERROR_OUT_PROC(ErrorOutProc); |