re-add the usb_core.h include. r21953 was a bit too aggressive
[kugel-rb.git] / firmware / include / dbgcheck.h
blobe1f7aefbdbe1ae6cc7434c120d601d0d8ef23332
1 #ifndef __DBGCHECK_H__
2 #define __DBGCHECK_H__
4 #include <stdbool.h>
6 #ifdef DEBUG
7 #ifndef SIMULATOR
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__