commit | 0b35bf237b190ccfbdb9e71cd7057c03c880ad48 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Thu Feb 18 12:49:40 2021 -0800 |
committer | swissChili <swisschili@fastmail.com> | Thu Feb 18 12:49:40 2021 -0800 |
tree | 64e95eaebd8c52f0c85363c2fee7b11b97983699 | |
parent | d8137921b3319a2b7e215920e37f46919e66964b [diff] [blame] |
Add printf, gdb support, fix gdt
diff --git a/src/log.h b/src/log.h new file mode 100644 index 0000000..48da93e --- /dev/null +++ b/src/log.h
@@ -0,0 +1,8 @@ +#pragma once + +#include "kint.h" + +void kprintf(const char *format, ...); +void kassert_int(bool condition, const char *message, const char *file, const int line); + +#define kassert(cond, msg) kassert_int((cond), (msg), __FILE__, __LINE__)