📄 sss_dbg_for_other_people.h
字号:
/* SOURCE_FILE: sss_dbg.h */
#ifndef __SSS_DBG_H_20020909__
#define __SSS_DBG_H_20020909__
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SSS_DEBUG
//TODO: user control of debug.
//#define SSS_DEBUG
#endif
/* define the DEBUG PRINT macro */
#ifdef SSS_DEBUG
#define SSS_DBG(MODULE,LEVEL,TXT) DDI_UART_Init ##TXT
#else
#define SSS_DBG(MODULE,LEVEL,TXT) /* disable for release version */
#endif
/* define the ASSERT macro */
#ifdef SSS_DEBUG
#define SSS_ASSERT(MODULE,TXT) ASSERT_TMP(TXT)
#define SSS_ASSERT_TMP(X) ASSERT_TMP(X)
#else
#define SSS_ASSERT(MODULE,TXT) /* disabled */
#define SSS_ASSERT_TMP(X) /* disabled */
#endif
#define ASSERT_TMP(X) \
if (!(X)) \
{ \
sttbx_Print("[Fatal Error]Assertion Failed!: %s,[FILE:%s, LINE:%d].\n",#X,__FILE__,__LINE__);\
while(1); \
}
#ifdef __cplusplus
}
#endif
#endif /* file : __SSS_DBG_H_20020909__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -