aboutsummaryrefslogtreecommitdiff
path: root/stdlib/stdlib.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-01-31 22:08:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-01-31 22:08:01 +0200
commit61b4f7fb29db2e8f8af266fcb0836b6b9232245a (patch)
treec5aa7d9049cbeb60e17e8440ac8eb0f79decf66b /stdlib/stdlib.h
downloadkernel.cpp-61b4f7fb29db2e8f8af266fcb0836b6b9232245a.tar.xz
Initial commit
Diffstat (limited to 'stdlib/stdlib.h')
-rw-r--r--stdlib/stdlib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
new file mode 100644
index 0000000..3e6619d
--- /dev/null
+++ b/stdlib/stdlib.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <string.h>
+
+class Console {
+public:
+ virtual void write(const String &msg) = 0;
+};
+
+void console_set(Console *ptr);
+
+void printk(const String &msg);
+
+__attribute__((__noreturn__)) void abort();