files
syscalls/src/debug.h
Egor00f 764e5a1cde add debug funcs
+ created debug funcs
+ created `registers` class
+ add it to build

build not passed(
2025-04-09 21:21:10 +05:00

26 lines
313 B
C

#ifndef __DEBUG_H__
#define __DEBUG_H__
#ifdef NDEBUG
#include <sys/ksys.h>
/**
* Debug out, enabled
*/
#define DEBUG_PRINT(msg) _ksys_debug_puts(msg)
#else
/**
* Debug out, disabled
*/
#define DEBUG_PRINT(msg)
#endif
#define DEBUG_LINE(msg) DEBUG_PRINT(msg); DEBUG_PRINT("\n")
#endif // __DEBUG_H__