feat: panic, printf, logo and something i dont remember
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
void console_init(SG_Context *ctx);
|
||||
void console_clear(u32 color);
|
||||
void console_set_color(u32 color);
|
||||
void console_set_cursor_pos(SG_Point *p);
|
||||
void kprint(const char *str);
|
||||
void kprintf(const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "types.h"
|
||||
|
||||
static inline int abs(int n) {
|
||||
return (n < 0) ? -n : n;
|
||||
}
|
||||
|
||||
static inline i64 i64abs(i64 n) {
|
||||
return (n < 0) ? -n : n;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
__attribute__((noreturn)) void panic(const char *msg);
|
||||
Reference in New Issue
Block a user