Michael Bruck <mbruck@digenius.de> macros for error handling
git-svn-id: svn://svn.berlios.de/openocd/trunk@1551 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -51,6 +51,16 @@
|
||||
#define ARM11_TAP_DEFAULT TAP_INVALID
|
||||
|
||||
|
||||
#define CHECK_RETVAL(action) \
|
||||
do { \
|
||||
int __retval = (action); \
|
||||
\
|
||||
if (__retval != ERROR_OK) \
|
||||
return __retval; \
|
||||
\
|
||||
} while (0)
|
||||
|
||||
|
||||
typedef struct arm11_register_history_s
|
||||
{
|
||||
u32 value;
|
||||
|
||||
Reference in New Issue
Block a user