diff options
Diffstat (limited to 'libc/print.c')
-rw-r--r-- | libc/print.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/print.c b/libc/print.c index ffb1e69..3d64504 100644 --- a/libc/print.c +++ b/libc/print.c @@ -213,4 +213,14 @@ int print(const char *str) return strlen(str); } +void panic(const char *format, ...) +{ + va_list ap; + va_start(ap, format); + vprintf(format, ap); + va_end(ap); + + assert(0); +} + #endif |