diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-11-12 19:19:51 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-11-12 19:19:51 +0200 |
| commit | 5b5f6321c743e9a521e45865312a76ae0bffe450 (patch) | |
| tree | e14fc4020b251240df010ec7ce72cc7810306d0a /src/debug.c | |
| parent | 8dce541c96a329e3b12f3ea3794fcc8202fbd134 (diff) | |
| download | ek-5b5f6321c743e9a521e45865312a76ae0bffe450.tar.gz ek-5b5f6321c743e9a521e45865312a76ae0bffe450.zip | |
start implementing new generics handling
+ Still requires a lot of fixes here and there
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index ee410be..2b993bf 100644 --- a/src/debug.c +++ b/src/debug.c @@ -169,6 +169,16 @@ void internal_error(const char *fmt, ...) va_end(args); } +void internal_warn(const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + fprintf(stderr, "internal warning: "); + vfprintf(stderr, fmt, args); + fprintf(stderr, "\n"); + va_end(args); +} + /** * Workhorse for type_str(). * |
