dbgcheck.h

来自「编译后直接运行的MP3播放器全部C语言源代码 一个包含FAT文件系统、系统」· C头文件 代码 · 共 24 行

H
24
字号
#ifndef __DBGCHECK_H__#define __DBGCHECK_H__#include <stdbool.h>#ifdef DEBUG #ifndef SIMULATOR  /* check whether a function is inside the valid memory location */  #define IS_FUNCPTR(fp) ({/     extern char _text[];/     extern char _etext[];/     ((((char *)(fp)) >= _text) && (((char *)(fp)) < _etext)/  }) #else  /* check whether a function is inside the valid memory location */  #define IS_FUNCPTR(fp) (((char*)(fp)) != NULL) #endif#else /* check whether a function is inside the valid memory location */ #define IS_FUNCPRT (fp) true#endif#endif // #ifndef __DBGCHECK_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?