mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: use mpaland printf
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef _LOGGING_H
|
||||
#define _LOGGING_H
|
||||
|
||||
#include <printf.h>
|
||||
|
||||
void _putchar(char c);
|
||||
void logging_sethook(void (*fun)(char));
|
||||
|
||||
// TODO panic
|
||||
|
||||
#define __assert(x) \
|
||||
if (!(x)){ \
|
||||
printf("%s:%s:%d: %s failed\n", __FILE__, __func__, __LINE__, #x); \
|
||||
for(;;); \
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user