Espresso 0.0.2a
This commit is contained in:
25
kernel/kdebug.c
Normal file
25
kernel/kdebug.c
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
#include <kdebug.h>
|
||||
|
||||
static bool __debug = false;
|
||||
|
||||
void set_debug(void)
|
||||
{
|
||||
__debug = true;
|
||||
}
|
||||
|
||||
void clear_debug(void)
|
||||
{
|
||||
__debug = false;
|
||||
}
|
||||
|
||||
void toggle_debug(void)
|
||||
{
|
||||
__debug = !__debug;
|
||||
}
|
||||
|
||||
bool get_debug(void)
|
||||
{
|
||||
return __debug;
|
||||
}
|
||||
Reference in New Issue
Block a user