+ created debug funcs + created `registers` class + add it to build build not passed(
26 lines
313 B
C
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__
|