diff options
| author | 2026-02-21 18:37:06 +0100 | |
|---|---|---|
| committer | 2026-02-21 18:37:23 +0100 | |
| commit | e479a0754c5afed3166426fc176e0b80dfc134b0 (patch) | |
| tree | 9ca11bb75f81e4b39e94bfcbe61af9053cdd4fd5 /common.h | |
| parent | 73340cf5c0db53af2ac3b246b8ff6a531d326006 (diff) | |
cpp: better diagnostics
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -435,6 +435,9 @@ void markfileonce(int id, internstr guard); void markfileseen(int id); bool isfileseen(int id); void closefile(int id); + +enum diagkind { DGERROR, DGWARN, DGNOTE, }; +void vdiag(const struct span *, enum diagkind, const char *, va_list); NORETURN void fatal(const struct span *, const char *, ...); void error(const struct span *, const char *, ...); void warn(const struct span *, const char *, ...); |