diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-11 23:23:12 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-11 23:23:12 +0300 |
| commit | d23d03829e5baf947d347f49cc1d7807be6c070b (patch) | |
| tree | f611d1105868f1d253cf15070b55793ed694861b /src/debug.c | |
| parent | 3065334aec0f357c88eab144628a798db4a3e5ea (diff) | |
| download | ek-d23d03829e5baf947d347f49cc1d7807be6c070b.tar.gz ek-d23d03829e5baf947d347f49cc1d7807be6c070b.zip | |
initial generics for structs
+ Likely still very much full of bugs
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index 734ce0e..0d11473 100644 --- a/src/debug.c +++ b/src/debug.c @@ -146,6 +146,19 @@ void type_error(struct file_ctx fctx, struct type *node, va_end(args); } +void loc_error(struct file_ctx fctx, struct src_loc loc, + const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + struct src_issue issue; + issue.level = SRC_ERROR; + issue.loc = loc; + issue.fctx = fctx; + _issue(issue, fmt, args); + va_end(args); +} + void semantic_warn(struct file_ctx fctx, struct ast *node, const char *fmt, ...) { |
