aboutsummaryrefslogtreecommitdiff
path: root/libc/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-03-12 16:07:45 +0100
committerMarvin Borner2021-03-12 16:07:45 +0100
commitf1751c121d48f2d8936c72bdc347777d1e7402d9 (patch)
tree399c08a59756d8980aad6c451e2b0e4c97b3911f /libc/inc
parent99b674a9e8d78b12188cc0280b990ec50de109d8 (diff)
Let's gooo!
Diffstat (limited to 'libc/inc')
-rw-r--r--libc/inc/def.h1
-rw-r--r--libc/inc/print.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/libc/inc/def.h b/libc/inc/def.h
index 945ccb0..db1c95e 100644
--- a/libc/inc/def.h
+++ b/libc/inc/def.h
@@ -25,6 +25,7 @@ typedef unsigned long long u64;
#define UNUSED(a) ((void)(a))
+#define NORETURN __attribute__((noreturn))
#define NO_SANITIZE __attribute__((no_sanitize("undefined")))
#define PACKED __attribute__((packed))
#define ALIGNED(align) __attribute__((aligned(align)))
diff --git a/libc/inc/print.h b/libc/inc/print.h
index 110ba4c..58b5dc6 100644
--- a/libc/inc/print.h
+++ b/libc/inc/print.h
@@ -4,13 +4,14 @@
#define PRINT_H
#include "arg.h"
+#include <def.h>
int printf(const char *format, ...);
int vprintf(const char *format, va_list ap);
int sprintf(char *str, const char *format, ...);
int vsprintf(char *str, const char *format, va_list ap);
int print(const char *str);
-void panic(const char *format, ...);
+NORETURN void panic(const char *format, ...);
#ifdef userspace
int vfprintf(const char *path, const char *format, va_list ap);