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:
oharboe
2009-04-28 07:29:18 +00:00
parent 5df0a88e01
commit 9ba80f08f4
3 changed files with 62 additions and 127 deletions

View File

@@ -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;