Commit FS#12096 by Stephan Grossklass. Increases the maximum ID3v2 field length...
[kugel-rb.git] / firmware / include / dbgcheck.h
blob0b38627d11cdeb810e3ee9c1fc1d2ab66131bfc1
1 #ifndef __DBGCHECK_H__
2 #define __DBGCHECK_H__
4 #include <stdbool.h>
6 #ifdef DEBUG
7 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
8 /* check whether a function is inside the valid memory location */
9 #define IS_FUNCPTR(fp) ({/
10 extern char _text[];/
11 extern char _etext[];/
12 ((((char *)(fp)) >= _text) && (((char *)(fp)) < _etext)/
14 #else
15 /* check whether a function is inside the valid memory location */
16 #define IS_FUNCPTR(fp) (((char*)(fp)) != NULL)
17 #endif
18 #else
19 /* check whether a function is inside the valid memory location */
20 #define IS_FUNCPRT (fp) true
21 #endif
24 #endif // #ifndef __DBGCHECK_H__